-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (26 loc) · 820 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
language: python
# python version:
python:
- "3.6"
# ask for database service:
services:
- postgresql
# create local .env file from .travis.env:
before_install:
- mv .travis.env .env
# install dependencies and coveralls:
install:
- pip install -r requirements.txt
- pip install coveralls
# set up database, make migrations, migrate, and create super user:
before_script:
- psql -c "CREATE DATABASE devteamhub;" -U postgres
- python manage.py makemigrations
- python manage.py migrate
- echo "from django.contrib.auth.models import User; User.objects.filter(email='[email protected]').delete(); User.objects.create_superuser('admin', '[email protected]', 'nimda')" | python manage.py shell
# run tests:
script:
- python manage.py test
# coveralls for code coverage:
after_success:
- coveralls