forked from russell/fairy-slipper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (23 loc) · 870 Bytes
/
.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
language: python
install:
- pip install tox
script:
- tox
env:
- TOXENV=pep8
- TOXENV=pypy
- TOXENV=py27
- TOXENV=py33
- TOXENV=py34
- TOXENV=node
- TOXENV=coveralls
before_install:
- "[[ \"$TOXENV\" == \"node\" ]] && /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16 || true"
- "[[ \"$TOXENV\" == \"node\" ]] && sudo apt-get install chromium || true"
before_script:
- "[[ \"$TOXENV\" == \"node\" ]] && export CHROME_BIN=chromium || true"
- "[[ \"$TOXENV\" == \"node\" ]] && export DISPLAY=:99.0 || true"
- "[[ \"$TOXENV\" == \"node\" ]] && sh -e /etc/init.d/xvfb start || true"
- "[[ \"$TOXENV\" == \"node\" ]] && sleep 3 || true"
after_success:
- "[[ \"$TOXENV\" == \"coveralls\" ]] && ./.tox/coveralls/bin/coveralls || true"