-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.travis.yml
30 lines (28 loc) · 1.06 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
matrix:
include:
- os: linux
sudo: required
dist: trusty
language: generic
env: PYTHON="python2" PACKAGES="pep8 pyflakes python-gi python-gi-cairo python-faulthandler libpython-dev"
- os: linux
sudo: required
dist: trusty
language: generic
env: PYTHON="python3" PACKAGES="python3-gi python3-gi-cairo libpython3-dev"
- os: linux
sudo: required
dist: trusty
language: generic
env: PYTHON="pypy" PACKAGES="pypy"
install:
- if [ "$PYTHON" == "pypy" ]; then sudo add-apt-repository -y ppa:pypy/ppa; fi
- sudo apt-get update -q
- sudo apt-get install --no-install-recommends -y xvfb gir1.2-gtk-3.0 gobject-introspection libcairo2-dev libglib2.0-dev libgirepository1.0-dev build-essential libcairo2-dbg libglib2.0-0-dbg $(echo $PACKAGES)
- make -C "tests/libs"
- virtualenv --python=$PYTHON --system-site-packages _venv
- source _venv/bin/activate
- pip install cffi cairocffi
script:
- xvfb-run -a $PYTHON ./setup.py test
- if [ "$PYTHON" == "python2" ]; then $PYTHON ./setup.py quality; fi