forked from mentimun-mentah/balihot-property-backend
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
36 lines (36 loc) · 1.04 KB
/
.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
services:
- postgresql
- redis-server
env:
global:
- APP_URL=http://localhost:3000
- ACCESS_TOKEN_EXPIRES=900
- REFRESH_TOKEN_EXPIRES=2592000
- SMTP_SERVER=smtp.gmail.com
- SMTP_PORT=465
- SMTP_USE_SSL=true
- SMTP_EMAIL=balihottest2020@gmail.com
- SMTP_PASSWORD=2020testbalihot
- EMAIL_ENQUIRY=balihottest2020@gmail.com
- REDIS_DB_HOST=localhost
- SQLALCHEMY_DATABASE_URI=postgresql://balihotproperty:123@localhost/balihotproperty
language: python
python:
- "3.8"
cache: pip
install:
- pip install -r restapi/requirements.txt
- pip install coveralls
before_script:
- psql -c "CREATE DATABASE balihotproperty;" -U postgres
- psql -c "CREATE USER balihotproperty WITH PASSWORD '123';" -U postgres
- cd restapi/
- flask db init
- flask db migrate -m "init db"
- flask db upgrade
- psql -c "INSERT INTO types (name) VALUES ('Villa'),('Land')" -U balihotproperty
- cd services/tests/system
- touch __init__.py
script: coverage run --source=. -m unittest discover
after_success:
- coveralls