-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (41 loc) · 980 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
notifications:
email: false
sudo: false
language: python
env:
global:
- CI=true
matrix:
include:
- os: linux
python: 2.7
- os: osx
sudo: required
language: generic
install:
- pip install matplotlib
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
brew install python;
python2 setup.py install;
pip install pytest==2.8.7;
fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
python setup.py install;
fi
before_script: # configure a headless display to test plot generation
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
( sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )&
fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
"export DISPLAY=:99.0";
"sh -e /etc/init.d/xvfb start";
sleep 5;
fi
# give xvfb some time to start
script:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
python2 setup.py test;
fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
python setup.py test;
fi