forked from psychopy/psychopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (26 loc) · 1.43 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
# vim ft=yaml
# travis-ci.org and coveralls definition for PsychoPy tests
language: python
python:
- "2.7"
virtualenv:
system_site_packages: true
before_install:
- sudo apt-get update -qq
- sudo apt-get install lsb-release
- source /etc/lsb-release
- echo ${DISTRIB_CODENAME}
- wget -O- http://neuro.debian.net/lists/${DISTRIB_CODENAME}.us-nh.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
- wget -q -O- http://neuro.debian.net/_static/neuro.debian.net.asc | sudo apt-key add -
- travis_retry sudo apt-get update -qq
- sudo apt-cache policy # What is actually available?
- travis_retry sudo apt-get install -qq xvfb xauth libgl1-mesa-dri
- travis_retry sudo apt-get install -qq python-pyglet python-pygame python-opengl
- travis_retry sudo apt-get install -qq python-numpy python-scipy python-matplotlib python-lxml
- travis_retry sudo apt-get install -qq python-configobj python-imaging python-openpyxl python-mock python-wxgtk2.8 libavbin0 python-pyo
install:
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install -q coveralls; fi
script:
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then xvfb-run -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" coverage run --rcfile=.travis_coveragerc psychopy/tests/runPytest.py -v -s -m "not needs_sound"; else { echo "TODO while avoiding duplication"; exit 1; } fi
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then coveralls; fi