-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
36 lines (31 loc) · 938 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
# config for (Django + Postgres) -> Docker -> Travis -> Heroku
language: python
python:
- 3.6
services:
- docker
# - postgresql
install:
- pip install -r requirements.txt
#before_script:
# - python manage.py collectstatic
# - psql -c 'create database testdb;' -U postgres
# - psql -c 'create database travisci;' -U postgres
# - psql -c "CREATE DATABASE testdb;" -U postgres
# - docker-compose run web python manage.py collectstatic
script:
# - docker-compose build
# - docker ps
# - docker-compose run web python manage.py makemigrations
# - docker-compose run web python manage.py migrate
- docker-compose run web python manage.py test
# travis without dockerization
# - python manage.py makemigrations
# - python manage.py migrate
# - python manage.py test
deploy:
provider: script
script: bash docker_push.sh
skip_cleanup: true
on:
branch: master