-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
47 lines (38 loc) · 863 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
43
44
45
46
47
sudo: required
language: python
python:
- "3.6"
services:
- postgresql
addons:
postgresql: "9.6"
env:
global:
- BUILD_ON_TRAVIS=true
- IS_HEROKU_TEST=1
matrix:
- DJANGO_VERSION=1.11.5 DB=postgresql
install:
- pip install -r requirements.txt
- pip install -q Django==$DJANGO_VERSION
before_script:
- psql -c 'create database travis_ci_db;' -U postgres
- python manage.py makemigrations
script:
- python manage.py migrate
- python manage.py test
#deploy:
# provider: heroku
# buildpack: heroku/python
# api_key:
# secure: 8c6f49c0-f5fc-4271-b731-96d679998743
# strategy: git
# app: checash
# on:
# repo: heroku/checash
# branch: master
# run:
# - "python checash/manage.py makemigrations --noinput"
# - "python checash/manage.py migrate"
# - "python checash/manage.py collectstatic"
# - restart