-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
34 lines (34 loc) · 934 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
language: python
cache: pip
python:
- "2.7"
services:
- elasticsearch
- postgresql
addons:
postgresql: "9.6"
before_script:
- sleep 10
- psql -c 'create database tolaactivity;' -U postgres
install:
- cat requirements/base.txt | grep "^Django==\|^psycopg2" | xargs pip install
- pip install -r requirements/pkg.txt
script:
- python manage.py test --tag=pkg
- pip install -r requirements/ci.txt
- TOLA_DB_NAME=tolaactivity python manage.py makemigrations --check --dry-run
- coverage run --source='.' manage.py test -v 2
- coverage report
after_success:
- coveralls
env:
global:
- TOLA_DB_ENGINE=django.db.backends.postgresql_psycopg2
- TOLA_DB_NAME=test
- TOLA_DB_USER=postgres
- TOLA_DB_PASS=
- TOLA_DB_PORT=5432
- TOLA_TRACK_SYNC_ENABLED=False
- ELASTICSEARCH_URL=http://127.0.0.1:9200/
- COVERALLS_REPO_TOKEN=e4x1YSoHzZd9c7lmIu880ghTMniH24YLq
- DEFAULT_ORG=TolaData