forked from lanl-ansi/PowerModels.jl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
32 lines (29 loc) · 1.01 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
language: julia
os:
- linux
- osx
julia:
- 0.6
- nightly
matrix:
allow_failures:
- julia: nightly
cache:
directories:
- /home/travis/.julia
addons:
apt_packages:
- gfortran
before_install:
# don't keep an old version of the code in the cache
- julia -e 'if "PowerModels" in keys(Pkg.installed()) Pkg.rm("PowerModels"); Pkg.rm("PowerModels") end'
- julia -e 'Pkg.update()' #make sure we get the latest version of METADATA
- julia -e 'if !("Coverage" in keys(Pkg.installed())) Pkg.add("Coverage") end'
- julia -e 'if !("Documenter" in keys(Pkg.installed())) Pkg.add("Documenter") end'
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia -e 'Pkg.clone(pwd())'
- julia -e 'Pkg.test("PowerModels", coverage=true)'
after_success:
- julia -e 'using Coverage; cd(Pkg.dir("PowerModels")); LCOV.writefile("lcov.info", process_folder(".")); run(pipeline(`curl -s https://codecov.io/bash`, `bash`))'
- julia -e 'cd(Pkg.dir("PowerModels")); include(joinpath("docs", "make.jl"))'