forked from EGCETSII/decide_django_2
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.travis.yml
More file actions
35 lines (34 loc) · 1004 Bytes
/
.travis.yml
File metadata and controls
35 lines (34 loc) · 1004 Bytes
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
dist: xenial
services:
- postgresql
addons:
postgresql: "9.4"
chrome: stable
firefox: latest
before_script:
- psql -U postgres -c "create user decide password 'decide'"
- psql -U postgres -c "create database test_decide owner decide"
- psql -U postgres -c "ALTER USER decide CREATEDB"
- psql -U postgres -c "create database decide owner decide"
language: python
python:
- "3.6"
install:
- pip install -r requirements.txt
- pip install codacy-coverage
- pip install selenium
- sudo apt-get install firefox
- wget "https://github.com/mozilla/geckodriver/releases/download/v0.27.0/geckodriver-v0.27.0-linux64.tar.gz"
- tar xfz geckodriver-v0.27.0-linux64.tar.gz
- sudo mv -f geckodriver /usr/bin
script:
- cd decide
- coverage run --branch --source=. ./manage.py test booth/ --keepdb --with-xunit
- coverage xml
- python-codacy-coverage -r coverage.xml
notifications:
email:
recipients:
- davcacrom@alum.us.es
on_succes: never
on_failure: always