kivy/.travis.yml

60 lines
1.8 KiB
YAML
Raw Normal View History

2012-10-18 15:47:49 +00:00
language: python
2015-06-22 23:43:34 +00:00
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
2012-10-18 15:47:49 +00:00
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;
2015-09-09 19:17:09 +00:00
sudo apt-get install python-dev libsmpeg-dev libswscale-dev libavformat-dev libavcodec-dev libjpeg-dev libtiff4-dev libX11-dev libmtdev-dev;
2015-09-09 18:45:08 +00:00
sudo apt-get install python-setuptools 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;
2012-10-18 15:47:49 +00:00
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:
2015-07-05 15:41:37 +00:00
webhooks:
urls:
- http://kivy.org:5000/travisevent
on_success: always
2015-06-23 00:14:58 +00:00
on_failure: always
2015-07-05 16:16:23 +00:00
on_start: always