-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
42 lines (40 loc) · 980 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
35
36
37
38
39
40
41
42
language: python
python:
- 3.6
services:
- postgresql
env:
-DJANGO=2.0.6
-DB=postgresql
-DEBUG=True
-DB_NAME=cruzz_db
-DB_USER=cruzz
-DB_PASSWORD=cruzz
-DB_HOST=127.0.0.1
-DB_PORT=5432
-ALLOWED_HOSTS=*
-GH_KEY=123456test
-GH_SKEY=123456test
-TW_KEY=123456test
-TW_SKEY=123456test
-FB_KEY=123456test
-FB_SKEY=123456test
-G_KEY=123456test
-G_SKEY=123456test
-MODE=prod
-EMAIL=test@cruzz.com
-PASSWORD=test12345
install:
- pip install -r requirements.txt
before_script:
- psql -c "CREATE USER cruzz WITH PASSWORD 'cruzz';" -U postgres
- psql -c "ALTER USER cruzz CREATEDB;" -U postgres
- psql -c "CREATE DATABASE cruzz_db;" -U postgres
- psql -c "GRANT ALL ON DATABASE cruzz_db TO cruzz;" -U postgres
- psql -c "ALTER ROLE cruzz Superuser;" -U postgres
script:
- python manage.py makemigrations
- python manage.py migrate
- python manage.py test -v 2
- coverage run --source='.' manage.py test
- coverage report -m