-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (49 loc) · 2.37 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language: julia
os:
- linux
julia:
- 1.0.3
matrix:
allow_failures:
- julia: nightly
notifications:
email: false
addons:
apt_packages:
- gfortran
- liblapack-dev
- libblas-dev
jobs:
include:
- stage: "Test"
julia: 1.0.3
os: linux
script:
- julia -e 'using Pkg; Pkg.clone("https://github.com/jalving/Metis.jl.git")'
- julia -e 'using Pkg; Pkg.add("Ipopt"); Pkg.add("GLPKMathProgInterface")'
- julia -e 'using Pkg; Pkg.add("JuMP"); Pkg.pin(PackageSpec(name = "JuMP", version = "0.18.5"))'
- julia -e 'using Pkg; Pkg.clone("https://github.com/jalving/Plasmo.jl.git") ; Pkg.test("Plasmo",coverage=true)'
after_success:
- julia -e 'if VERSION >= v"0.7.0-" using Pkg end; cd(Pkg.dir("Plasmo")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder()); Coveralls.submit(Coveralls.process_folder())';
- stage: "Documentation"
julia: 1.0.3
os: linux
script:
- julia --project=docs/ -e 'using Pkg; Pkg.clone("https://github.com/jalving/Metis.jl.git")'
- julia --project=docs/ -e 'using Pkg; Pkg.add("JuMP"); Pkg.pin(PackageSpec(name = "JuMP", version = "0.18.5"))'
- julia --project=docs/ -e 'using Pkg; Pkg.instantiate(); Pkg.develop(PackageSpec(path=pwd()))'
- julia --project=docs/ docs/make.jl
#script: # the default script is equivalent to the following
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia -e 'Pkg.clone(pwd()); Pkg.build("Example"); Pkg.test("Example"; coverage=true)';
#script:
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia -e 'using Pkg; Pkg.clone("https://github.com/fredrikekre/Metis.jl.git")'
# - julia -e 'using Pkg; Pkg.add("Ipopt")'
# - julia -e 'using Pkg; Pkg.clone("https://github.com/jalving/Plasmo.jl.git") ; Pkg.test("Plasmo",coverage=true)'
#after_success:
# - julia -e 'if VERSION >= v"0.7.0-" using Pkg end; cd(Pkg.dir("Plasmo")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';
# - julia -e 'Pkg.add("Documenter")'
# - julia -e 'cd(Pkg.dir("Plasmo")); include(joinpath("docs", "make.jl"))'
# - julia -e 'cd(Pkg.dir("Plasmo")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
# - julia -e 'cd(Pkg.dir("Plasmo")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'