forked from lanl-ansi/PowerModels.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (29 loc) · 906 Bytes
/
.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.4
- 0.5
cache:
directories:
- /home/travis/.julia
sudo: false
addons:
apt_packages:
- gfortran
- liblapack-dev
- libgmp-dev
- libglpk-dev
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'
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia -e 'Pkg.clone(pwd())'
- julia -e 'Pkg.test("PowerModels", coverage=true)'
after_success:
- echo $TRAVIS_JULIA_VERSION
- export REPO_TOKEN=9c0bd91b-c273-45a8-a221-a4d4e63ac464; julia -e 'using Coverage; cd(Pkg.dir("PowerModels")); Codecov.submit(process_folder("."));'