forked from fofix/fofix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (49 loc) · 1.49 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
language: python
python:
- 2.7
matrix:
include:
- env:
- GIT_COMMIT=1
install:
- pip install gitlint
script:
- gitlint --commits origin..HEAD
- env:
- GIT_COMMIT=0
before_install:
- LD_LIBRARY_PATH=/usr/local/lib64/:$LD_LIBRARY_PATH
- export LD_LIBRARY_PATH
- sudo apt-get -qq update
- sudo apt-get install -y
libogg-dev
libportmidi-dev
libsdl-image1.2-dev
libsdl-mixer1.2-dev
libsdl-ttf2.0-dev
libsdl1.2-dev
libsoundtouch-dev
libswscale-dev
libtheora-dev
libvorbis-dev
mesa-utils
portaudio19-dev
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- LD_LIBRARY_PATH=/usr/local/lib64/:$LD_LIBRARY_PATH
- export LD_LIBRARY_PATH
- sudo apt-get -q update
- sudo apt-get install -y gcc-4.9 g++-4.9
install:
- pip install pytest
- pip install cython
- pip install -r requirements.txt
# build ext
- python setup.py build_ext --inplace --force
before_script:
# hack: GUI tests
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3 # give xvfb some time to start
- export SDL_AUDIODRIVER=disk
script:
- pytest fofix