forked from vepiteski/SolverComparator.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (31 loc) · 1.24 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
# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
os:
- linux
- osx
julia:
- release
- nightly
notifications:
email: false
addons:
apt_packages:
- gfortran
- libgsl0-dev
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install gcc; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
wget --no-check-certificate http://www.cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz;
tar -xzf cmake-3.3.2-Linux-x86_64.tar.gz;
sudo cp -fR cmake-3.3.2-Linux-x86_64/* /usr;
export PATH=`pwd`/cmake-3.3.2-Linux-x86_64/bin:$PATH;
unset DYLD_LIBRARY_PATH;
sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/$(gfortran -dumpversion | cut -f1,2 -d.)/libgfortran.so /usr/local/lib; fi
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia -e 'Pkg.clone(pwd()); Pkg.build("SolverComparator"); Pkg.test("SolverComparator"; coverage=true)'
after_success:
# push coverage results to Coveralls
- julia -e 'cd(Pkg.dir("SolverComparator")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
# push coverage results to Codecov
- julia -e 'cd(Pkg.dir("SolverComparator")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'