forked from uccser/codewof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
81 lines (81 loc) · 2.22 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
80
81
sudo: required
services:
- docker
language: python
python:
- '3.6'
before_install:
# See https://github.com/travis-ci/travis-ci/issues/7940
- sudo rm -f /etc/boto.cfg
install:
- sudo docker --version
- sudo docker-compose --version
jobs:
include:
- stage: test
script: ./dev ci test_suite
name: "Run test suite"
- script: ./dev ci style
name: "Run style checker"
- stage: development deployment
script: skip
name: "Deploy development website to Google App Engine"
deploy:
- provider: script
script: bash ./infrastructure/dev-deploy/deploy-app.sh
skip_cleanup: true
on:
branch: develop
- script: skip
name: "Update Google Cloud SQL database"
deploy:
- provider: script
script: bash ./infrastructure/dev-deploy/update-content.sh
skip_cleanup: true
on:
branch: develop
- script: skip
name: "Copy static files to Google Storage Bucket"
deploy:
- provider: script
script: bash ./infrastructure/dev-deploy/deploy-static-files.sh
skip_cleanup: true
on:
branch: develop
- stage: production deployment
script: skip
name: "Deploy production website to Google App Engine"
deploy:
- provider: script
script: bash ./infrastructure/prod-deploy/deploy-app.sh
skip_cleanup: true
on:
branch: master
- script: skip
name: "Update Google Cloud SQL database"
deploy:
- provider: script
script: bash ./infrastructure/prod-deploy/update-content.sh
skip_cleanup: true
on:
branch: master
- script: skip
name: "Copy static files to Google Storage Bucket"
deploy:
- provider: script
script: bash ./infrastructure/prod-deploy/deploy-static-files.sh
skip_cleanup: true
on:
branch: master
notifications:
email: false
slack:
rooms: deptfunstuff:abJKvzApk5SKtcEyAgtswXAv
on_success: change
on_failure: change
stages:
- name: test
- name: development deployment
if: branch = develop
- name: production deployment
if: branch = master