-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (35 loc) · 1.49 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
python:
- '3.6'
addons:
postgresql: '10'
apt:
packages:
- postgresql-10
- postgresql-client-10
services:
- postgresql
env:
global:
- PGPORT=5433
- DJANGO_SETTINGS_MODULE=consistently.settings
- DATABASE_URL=postgresql://postgres@localhost/travis_ci_test
- secure: TFNwsmXCi9jo8fDE0j7eeht+/yh1Ov96M5c+CqoQj9ILGqx48HSK7wQsvI7XXDikoSGjanBdv1SiC3FeuAzuOyIy4ExkQ5/bAn+aT2cHo/MzTMZxcOLWpS+/eqvXoTUfXi3PkvcGqAH7OLQb/Z5YCtsBQaZiC/UKfVRTXbtkFfIJa/CsVmoXBrhZq85ywYkiyK1QuJHB1v6BDTutW3u5ghI6ZUE4yiXsh6znC71VRDoyF8ZYJVVOMZ0JBkGD+tpAgycDbs37XaPcmLauDkaGLS6dbsLOGt4DJjwd+QpG3MyQTIsPAMyuAXva6sZjotjw+eJ6MgrhwDP19ogu9BXqTV/y/VbQfs5jTbUqKpZ3jhKvxFkIibtvTX/JtzyCWFYHrR0m+JmrtQoWiAIST2Wg2m8Uk2B1qEkzN+yk555AhVdXNg6sbQpx0c5nWOImw5+ldZP8jQbZ6T3rYxJyTkB/cYXsAogVTsDS3R1JWgUsUntwvVsgUzzBIqEED0QsvQWo9ZtTY0pV6cz3eagpS8qKoYoRZxfGUT7zAAcAOunO250Rpo8x7/CA6sKj1yh/sUZX8A8bNbM8tFo97r4n6caf/W3CJGGG/WE/uDxA4cbiFN04fDYHYDKh1PphAa2EKQdfoRJmrfDC3HtZ0A7iTgi3hajosA2xoDnt5WuzWnpoW3Y=
before_install:
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
- sudo service postgresql restart
- sleep 1
install:
- npm install
- pip install -U pip
- pip install -r requirements.txt
- pip install -r requirements_test.txt
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- python manage.py collectstatic --noinput --verbosity 0
script:
- coverage run manage.py test -v3
after_success:
- coveralls
notifications:
email: false