forked from okfde/froide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (34 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
31
32
33
34
35
---
language: python
sudo: required
dist: trusty
addons:
chrome: stable
python:
- '3.5'
- '3.6'
- '2.7'
before_install:
- psql -c 'create database froide;' -U postgres
- "export DISPLAY=:99.0"
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
install:
- wget -N http://chromedriver.storage.googleapis.com/2.34/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo chmod +x /usr/local/share/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
- pip install -r requirements-test.txt
- pip install psycopg2 coveralls
- pip install -e .
script:
- set -e
- export CHROME_DRIVER_PATH=/usr/local/bin/chromedriver
- export DATABASE_URL=postgres://postgres@127.0.0.1/froide
- whereis google-chrome-stable
- google-chrome-stable --version
- whereis chromedriver
- make test
after_success:
- coveralls