forked from datahuborg/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (39 loc) · 1.26 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
36
37
38
39
40
41
42
43
44
45
46
47
sudo: true
# thrift-compiler is only available for trusty, not precise
# Once Travis containers run trusty, or we no longer need thrift-compiler, we can drop sudo: true.
dist: trusty
group: deprecated-2017Q4
language: python
python: "2.7"
addons:
postgresql: "9.4"
apt:
packages:
- thrift-compiler
before_install:
- sudo mkdir /user_data
- sudo chmod -R 777 /user_data/
install:
- source src/setup.sh
- pip install -r requirements.txt
- python src/scripts/generate_secret_key.py
- cd src
before_script:
- psql -c "create database datahub;" -U postgres
- psql -c "drop role rails;" -U postgres
- psql -c "drop database travis;" -U postgres
- psql -c "drop role travis;" -U postgres
script:
# Migrations must be run before creating public users
- python manage.py migrate
- python manage.py test inventory www account browser core api
- python manage.py test integration_tests
# tests models
# tests home page
# tests account management views
# tests datahub core views
# tests datahub core database access
# test datahub api methods
# a DB problem requires the Functional Tests to be run seperately
# - python manage.py test functional_tests.test_login_auth
# - python manage.py test functional_tests.test_layout_and_styling