forked from mysociety/sayit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (37 loc) · 872 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
40
41
42
43
44
45
46
notifications:
email: false
sudo: false
language: python
services:
- elasticsearch
env:
global:
- CFLAGS="-O0"
matrix:
- TOXENV=flake8
- TOXENV=py27-1.8
- TOXENV=py27-1.10
- TOXENV=py27-1.11
- TOXENV=py34-1.8
- TOXENV=py34-1.10
- TOXENV=py34-1.11
addons:
firefox: latest
apt:
packages:
- ffmpeg
- libavcodec-extra-53
- xvfb
before_install:
- wget https://github.com/mozilla/geckodriver/releases/download/v0.17.0/geckodriver-v0.17.0-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver-v0.17.0-linux64.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
install:
- 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