forked from portugueslab/stytra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (47 loc) · 1.48 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
53
54
55
56
57
language: python
sudo: false
# Credit: Original .travis.yml lifted from PyQtGraph lifted from VisPy
# Here we use anaconda for 2.6 and 3.3, since it provides the simplest
# interface for running different versions of Python. We could also use
# it for 2.7, but the Ubuntu system has installable 2.7 Qt4-GL, which
# allows for more complete testing.
notifications:
email: false
cache:
directories:
- $HOME/mc
env:
- PYTHON=3.7 QT=pyqt5 TEST=standard
services:
- xvfb
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda3-3.7.3-Linux-x86_64.sh -O miniconda.sh;
- chmod +x miniconda.sh
- ./miniconda.sh -b -p ~/anaconda
- export PATH=~/anaconda/bin:$PATH
install:
- export GIT_FULL_HASH=`git rev-parse HEAD`
- conda update conda --yes
- conda env create -f environment.yml
- source activate stytra_env
- echo ${QT}
- echo ${TEST}
- echo ${PYTHON}
- hash -r
- which python
- python --version
- pwd
- ls
- pip install pytest-xdist # multi-thread py.test
- pip install pytest-cov
# add coverage stats
- pip install .
before_script:
# We need to create a (fake) display on Travis, let's use a funny resolution
- export DISPLAY=:99.0
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render
script:
- pytest
after_success:
- pip install coveralls --upgrade # add another coverage integration service
- coveralls