-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
52 lines (44 loc) · 1.53 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
## Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
os:
- linux
- osx
#
julia:
- 1.0
- 1.3
#matrix:
# allow_failures:
# - julia: 0.7
# - julia: 1.0
notifications:
email: false
sudo: false
#git:
# depth: 99999999
## uncomment and modify the following lines to manually install system packages
#addons:
# apt: # apt-get for linux
# packages:
# - gfortran
#
before_script: # homebrew for mac
- cd $HOME
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://d37drm4t2jghv5.cloudfront.net/distributions/25.1.3/linux/linux_x64_64_sfx.exe -O gams-install.exe; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget https://d37drm4t2jghv5.cloudfront.net/distributions/25.1.3/macosx/osx_x64_64_sfx.exe -O gams-install.exe; fi
- chmod +x gams-install.exe && ./gams-install.exe > /dev/null
- rm -f ./gams-install.exe
- mv gams* gams
- cd -
env:
- PATH: $PATH:$HOME/gams
## uncomment the following lines to override the default test script
script:
- julia -e 'using Pkg; Pkg.clone("https://github.com/xhub/ReSHOP.jl"); Pkg.build("ReSHOP");'
- julia -e 'using Pkg; Pkg.test("EMP"; coverage=true)'
after_success:
- echo $TRAVIS_JULIA_VERSION
# push coverage results to Coveralls
- julia -e 'using Compat.Pkg; cd(Pkg.dir("EMP")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
# push coverage results to Codecov
- julia -e 'using Compat.Pkg; cd(Pkg.dir("EMP")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'