forked from mysociety/sayit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (32 loc) · 797 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
27
28
29
30
31
32
33
34
35
36
37
38
39
notifications:
email: false
irc:
channels:
- "irc.mysociety.org#sayit"
use_notice: true
language: python
services:
- elasticsearch
env:
global:
- CFLAGS="-O0"
matrix:
- TOXENV=flake8
- TOXENV=py-27-1.8
- TOXENV=py-27-1.9
- TOXENV=py-34-1.8
- TOXENV=py-34-1.9
matrix:
allow_failures:
- env: TOXENV=py-27-1.9
- env: TOXENV=py-34-1.9
install:
- 'if [ $TOXENV != "flake8" ]; then sudo apt-get update -qq; fi'
- 'if [ $TOXENV != "flake8" ]; then sudo apt-get install -qq ffmpeg libavcodec-extra-53 iceweasel xvfb; fi'
- pip install tox
before_script:
- psql -c 'create database "sayit-example-project";' -U postgres
- export DISPLAY=:99.0
- 'if [ $TOXENV != "flake8" ]; then sh -e /etc/init.d/xvfb start; fi'
script:
- tox