-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
46 lines (37 loc) · 1.33 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
# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
os:
- linux
- osx
julia:
- 0.6
- 0.7
- nightly
notifications:
email: false
sudo: required
addons:
apt:
packages:
- xvfb
- xauth
- libgtk-3-0
## Allow failures on nightly julia
## (tests will run but not make your overall status red)
matrix:
allow_failures:
- julia: nightly
before_script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- "export DISPLAY=:99.0"
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then GUITESTCMD="xvfb-run julia"; else GUITESTCMD="julia"; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ( sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok; sleep 3 )& fi
- julia -e 'VERSION >= v"0.7-" && using Pkg; Pkg.clone(pwd()); Pkg.build("Libui");'
##uncomment the following lines to override the default test script
script:
- ${GUITESTCMD} -e 'VERSION >= v"0.7-" && using Pkg; Pkg.test("Libui"; coverage=true)'
after_success:
# push coverage results to Coveralls
- julia -e 'VERSION >= v"0.7-" && using Pkg; cd(Pkg.dir("Libui")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
# push coverage results to Codecov
- julia -e 'VERSION >= v"0.7-" && using Pkg; cd(Pkg.dir("Libui")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'