forked from KoalixSwitzerland/koalixcrm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
26 lines (22 loc) · 819 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
language: python
python:
- '3.4'
install:
- python setup.py install
- pip install -r requirements/heroku_requirements.txt
script:
- pytest --cov=koalixcrm --cov-report xml --cov-report term
- python-codacy-coverage -r coverage.xml
# Deployment
deploy:
provider: heroku
api_key:
secure: $HEROKU_API_KEY
app: koalix-crm
on:
repo: scaphilo/koalixcrm
run:
- "python manage.py collectstatic --settings=projectsettings.settings.heroku_settings --noinput"
- "python manage.py makemigrations --settings=projectsettings.settings.heroku_settings"
- "python manage.py migrate --settings=projectsettings.settings.heroku_settings"
- "echo \"from django.contrib.auth.models import User; User.objects.create_superuser('Admin002', '[email protected]', 'admin002');\" | python manage.py shell"