forked from dbca-wa/biosys
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
79 lines (75 loc) · 1.98 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
dist: bionic
sudo: false
language: python
python:
- "3.8"
addons:
postgresql: "9.6"
services:
- postgresql
branches:
only:
- master
- uat
- staging
- production
- oeh_uat
- oeh_production
- slug_uat
- slug_production
env:
global:
- SECRET_KEY=SecretKeyForTravis
- DATABASE_URL="postgis://postgres@localhost:5432/travis_ci_test"
install:
- sudo apt-get install -y postgresql-9.6-postgis-2.4
- psql -U postgres -c "create extension if not exists postgis"
- pip install pip --upgrade
- pip --version
- pip install -r requirements.txt
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- python manage.py migrate --noinput
script:
- python manage.py test
deploy:
- provider: elasticbeanstalk
access_key_id: $AWS_OEH_ACCESS_KEY
secret_access_key: $AWS_OEH_SECRET_KEY
region: "ap-southeast-2"
app: "biosys"
env: "biosys-uat"
bucket_name: elasticbeanstalk-ap-southeast-2-119102954308
on:
branch: oeh_uat
python: "3.6"
- provider: elasticbeanstalk
access_key_id: $AWS_OEH_ACCESS_KEY
secret_access_key: $AWS_OEH_SECRET_KEY
region: "ap-southeast-2"
app: "biosys"
env: "biosys-production"
bucket_name: elasticbeanstalk-ap-southeast-2-119102954308
on:
branch: oeh_production
python: "3.6"
- provider: elasticbeanstalk
access_key_id: $AWS_SLUG_ACCESS_KEY
secret_access_key: $AWS_SLUG_SECRET_KEY
region: "ap-southeast-2"
app: "biosys"
env: "biosys-uat"
bucket_name: elasticbeanstalk-ap-southeast-2-496139929044
on:
branch: slug_uat
python: "3.6"
- provider: elasticbeanstalk
access_key_id: $AWS_SLUG_ACCESS_KEY
secret_access_key: $AWS_SLUG_SECRET_KEY
region: "ap-southeast-2"
app: "biosys"
env: "biosys-production"
bucket_name: elasticbeanstalk-ap-southeast-2-496139929044
on:
branch: slug_production
python: "3.6"