-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (36 loc) · 1.02 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
36
37
38
39
40
41
42
43
language: python
dist: xenial
addons:
firefox: "latest"
postgresql: "9.5"
services:
- postgresql
matrix:
include:
- python: "3.7"
before_script:
- wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
- tar -xvzf geckodriver-v0.26.0-linux64.tar.gz
- chmod +x geckodriver && sudo mv geckodriver /usr/local/bin
# reference travis docs
- export DISPLAY=:99.0
install:
- pip3 install --upgrade pip;
- pip3 install -r requirements.txt;
- pip3 install -r requirements-dev.txt;
script:
# Django environment variables
- export SECRET_KEY="ASECRET"
# Build docs
- pushd docs
- make html
- popd
# Run tests
- python3 manage.py collectstatic --noinput
- if [ "$COVERALLS" = "true" ] && [ "$FLAKE8" = "true" ] ; then
xvfb-run python3 manage.py test --driver Firefox --cov --cov-report term-missing -v --flake8;
else
xvfb-run python3 manage.py test --driver Firefox -v;
fi
after_success:
- if [ "$COVERALLS" = "true" ]; then coveralls; fi