-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
40 lines (32 loc) · 1.48 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: julia
os:
- linux
- osx
julia:
- 1.5
- nightly
notifications:
email: false
git:
depth: 9999999
after_success:
- julia -e 'using Pkg, AutoGrad; cd(joinpath(dirname(pathof(AutoGrad)), "..")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder()); Coveralls.submit(process_folder())'
## Update the documentation
# after_success:
# - julia -e 'using Pkg; Pkg.add("Documenter")'
# - julia -e 'ENV["DOCUMENTER_DEBUG"] = "true"; using Pkg, AutoGrad; include(joinpath(dirname(pathof(AutoGrad)), "..", "docs", "make.jl"))'
## Commands run by travis:
# $ julia --color=yes -e "if VERSION < v\"0.7.0-DEV.5183\"; Pkg.clone(pwd()); Pkg.build(\"${JL_PKG}\"); else using Pkg; Pkg.build(); end"
# $ julia --check-bounds=yes --color=yes -e "if VERSION < v\"0.7.0-DEV.5183\"; Pkg.test(\"${JL_PKG}\", coverage=true); else using Pkg; Pkg.test(coverage=true); end"
## https://docs.travis-ci.com/user/languages/julia
## If you leave the julia: key out of your .travis.yml, Travis CI will use the most recent release.
# matrix:
# allow_failures:
# - julia: nightly ## getting too many warnings
## uncomment the following lines to override the default test script
#script:
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia --check-bounds=yes -e 'Pkg.clone(pwd()); Pkg.build("Knet"); Pkg.test("Knet"; coverage=true)'
# after_success:
# - julia -e 'Pkg.add("Documenter")'
# - julia -e 'cd(Pkg.dir("Knet")); include(joinpath("docs", "make.jl"))'