-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
66 lines (62 loc) · 1.79 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
branches:
only:
- master
- develop
matrix:
include:
- language: java
jdk:
- openjdk8
script:
- "cd ./back-end/legeno-around-here"
- "chmod +x gradlew"
- "./gradlew clean build"
- language: node_js
node_js:
- "node"
script:
- "cd ./front-end/legeno-around-here"
- "yarn upgrade"
- "yarn run build"
before_deploy:
- NOW_PATH=`pwd`
- BACK_PATH="back-end"
- FRONT_PATH="front-end"
- if [[ $NOW_PATH =~ $BACK_PATH ]];then zip -r back-end ./build/libs ./appspec.yml ./execute-deploy.sh;mkdir -p deploy;mv back-end.zip deploy/back-end.zip;export NOW_KEY="back-end.zip";export DEPLOY_GROUP="ittabi-back-group";fi
- if [[ $NOW_PATH =~ $FRONT_PATH ]];then zip -r front-end ./build ./appspec.yml ./execute-deploy.sh;mkdir -p deploy;mv front-end.zip deploy/front-end.zip;export NOW_KEY="front-end.zip";export DEPLOY_GROUP="ittabi-front-group";fi
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: ittabi-deploy
region: ap-northeast-2
skip_cleanup: true
acl: public_read
local_dir: deploy
wait-until-deployed: true
on:
repo: woowacourse-teams/2020-legeno-around-here
branch:
- master
- develop
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: ittabi-deploy
key: $NOW_KEY
bundle_type: zip
application: ittabi
deployment_group: $DEPLOY_GROUP
region: ap-northeast-2
wait-until-deployed: true
on:
repo: woowacourse-teams/2020-legeno-around-here
branch:
- master
- develop
notifications:
email:
on_success: never
on_failure: always
recipients: