-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (35 loc) · 848 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
language: python
python:
- "3.6"
sudo: required
cache: pip
services:
- postgresql
env:
global:
- FLASK_APP=flask_app
- FLASK_ENV=development
- DEFAULT_ADMINISTRATOR_ROLE=ADMINISTRATOR
- DEFAULT_ADMIN_EMAIL=root@flask.com
- DEFAULT_ADMIN_FULL_NAME=root
- DEFAULT_ADMIN_NICK_NAME=root
- DEFAULT_ADMIN_PASSWORD=flaskiscool
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=
- POSTGRES_HOST=localhost
- POSTGRES_DB=flaskdb
- POSTGRES_DB_PORT=5432
- APP_SETTINGS=flask_app.config.DevelopmentConfig
install:
- pip install -r ./app/requirements.txt
before_script:
- psql -c 'create database flaskdb;' -U postgres
script:
- cd app/
- rm -rf migrations
- python manage.py db init
- python manage.py db migrate
- python manage.py db upgrade
- python manage.py create_superuser
- pip install -e .
- pytest