forked from e-valuation/EvaP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (28 loc) · 959 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
language: python
python: "3.7"
dist: xenial
sudo: required
cache:
directories:
- $HOME/.cache/pip
services:
- postgresql
- redis-server
before_script:
- psql -c 'create database evap;' -U postgres
install:
- pip install -r requirements-travis.txt
- echo 'SECRET_KEY = "evap-travis-secret-key"' >> evap/localsettings.py
script:
- coverage run manage.py test --keepdb
- pylint evap
- python manage.py test --keepdb evap.evaluation.tests.test_misc.TestDataTest.load_test_data
- python manage.py test --keepdb --reverse
- python manage.py test --keepdb --debug-mode
# create a backup and load it again
- python manage.py migrate
- python manage.py loaddata test_data
- EVAP_OVERRIDE_BACKUP_FILENAME=true EVAP_SKIP_CHECKOUT=true EVAP_RUNNING_INSIDE_TRAVIS=true deployment/update_production.sh backup.json
- echo "yy" | EVAP_RUNNING_INSIDE_TRAVIS=true deployment/load_production_backup.sh backup.json
after_success:
- coveralls