This repository has been archived by the owner on Sep 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
69 lines (64 loc) · 1.62 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
notifications:
slack: networth-app:QND6oXSeOjfeWIGuLHLOZCSu
on_pull_requests: false
on_failure: always
on_success: always
matrix:
include:
- language: go
install:
- pip install --user awscli
before_script: cd api
script: go test
before_deploy: cd $TRAVIS_BUILD_DIR
deploy:
- provider: script
script: make deploy-api
- language: go
install:
- pip install --user awscli
before_script: cd dbstream
script: go test
before_deploy: cd ${TRAVIS_BUILD_DIR}
deploy:
- provider: script
script: make deploy-dbstream
- language: go
install:
- pip install --user awscli
before_script: cd notification
script: go test
before_deploy: cd ${TRAVIS_BUILD_DIR}
deploy:
- provider: script
script: make deploy-notification
- language: node_js
node_js: 10
before_install: cd web
install:
- pip install --user awscli
- npm i
script:
- npm test
- npm run build
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: ${LANDING_S3_BUCKET}
local-dir: ${TRAVIS_BUILD_DIR}/landing
acl: public_read
skip_cleanup: true
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: ${WEBAPP_S3_BUCKET}
upload-dir: app
local-dir: ${TRAVIS_BUILD_DIR}/web/build
acl: public_read
skip_cleanup: true
after_deploy:
- aws cloudfront create-invalidation --paths '/*' --distribution-id ${CLOUDFRONT_DISTRIBUTION_ID}
# on:
# branch: master
# tags: true