-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (54 loc) · 1.81 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
58
59
language: python
matrix:
fast_finish: true
include:
- python: 2.7
env: RUN=unit
- python: 3.4
env:
- RUN=unit COVERALLS=true
- python: 3.4
env: RUN=pep8
- python: 3.4
env: RUN=docs
install:
- if [ "${RUN}" != "pep8" ]; then
yes | sudo add-apt-repository ppa:zoogie/sdl2-snapshots;
yes | sudo add-apt-repository ppa:gstreamer-developers/ppa;
sudo apt-get update;
sudo apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev;
sudo apt-get install libgstreamer1.0-dev gstreamer1.0-alsa gstreamer1.0-plugins-base;
sudo apt-get install python-dev libsmpeg-dev libswscale-dev libavformat-dev libavcodec-dev libjpeg-dev libtiff4-dev libx11-6 libX11-dev libmtdev-dev;
sudo apt-get install python-setuptools python-opengl build-essential libgl1-mesa-dev libgles2-mesa-dev;
sudo apt-get install xvfb pulseaudio;
pip install --upgrade cython pillow nose coveralls;
pip install --upgrade sphinxcontrib-blockdiag sphinxcontrib-seqdiag sphinxcontrib-actdiag sphinxcontrib-nwdiag;
fi;
before_script:
- if [ "${RUN}" != "pep8" ]; then
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 1280x720x24 -ac +extension GLX;
export PYTHONPATH=$PYTHONPATH:$(pwd);
fi;
script:
- set -ev
- if [ "${RUN}" == "unit" ]; then
make;
make test;
fi;
- if [ "${COVERALLS}" == "true" ]; then
coveralls;
fi;
- if [ "${RUN}" == "pep8" ]; then
make style;
fi;
- if [ "${RUN}" == "docs" ]; then
make html;
fi;
notifications:
webhooks:
urls:
- http://kivy.org:5000/travisevent
on_success: always
on_failure: always
on_start: always