forked from jayesh92/vms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (29 loc) · 866 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
language: python
env:
- MOZ_HEADLESS=1
addons:
firefox: "60.0"
python:
- "3.6.5"
services: postgresql
before_install:
- bash setup-geckodriver.sh
install:
- pip install -r requirements.txt
before_script:
- psql -c "create role vmsadmin with createrole createdb login password '0xdeadbeef';" -U postgres
- psql -c "CREATE DATABASE vms;" -U postgres
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3
- export DJANGO_SECRET_KEY=foobarbaz
script:
- cd vms
- python manage.py makemigrations cities_light auth volunteer administrator organization event job shift registration
- python manage.py migrate --noinput --traceback --settings=vms.settings
- python manage.py cities_light
- flake8
- coverage run --source='.' manage.py test -v 2
- coverage report -m
after_success:
coveralls --rcfile=.coveragerc