-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
36 lines (31 loc) · 1.2 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
language: julia
os:
- linux
- osx
julia:
- 0.6
# this will save build time, once it is working
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 "toJuMP" in keys(Pkg.installed()) Pkg.rm("toJuMP"); Pkg.rm("toJuMP") 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: # core code tests
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia -e 'Pkg.clone(pwd())'
- julia -e 'Pkg.test("toJuMP", coverage=true)'
after_success: # post-processing, if the script passes with no errors
- echo $TRAVIS_JULIA_VERSION # just useful to know what version of Julia was used
- julia -e 'using Coverage; cd(Pkg.dir("toJuMP")); LCOV.writefile("lcov.println", process_folder(".")); run(pipeline(`curl -s https://codecov.io/bash`, `bash`))'
- julia -e 'cd(Pkg.dir("toJuMP")); include(joinpath("docs", "make.jl"))'