forked from wwh-techcamp-2018/team8-AOA2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (46 loc) · 1.41 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
language: java
jdk:
- openjdk8
branches:
only:
- master
# Travis CI 서버의 Home
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.gradle'
script: "./gradlew clean build"
# CI 실행 완료시 메일로 알람
notifications:
email:
recipients:
before_deploy:
- zip -r aoa2-application *
- mkdir -p deploy
- mv aoa2-application.zip deploy/aoa2-application.zip
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY # Travis repo settings에 설정된 값
secret_access_key: $AWS_SECRET_KEY # Travis repo settings에 설정된 값
bucket: 20180814aoa2team8
region: ap-northeast-2
skip_cleanup: true
acl: public_read
wait-until-deployed: true
on:
repo: wwh-techcamp-2018/team8-AOA2
branch: master
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY # Travis repo settings에 설정된 값
secret_access_key: $AWS_SECRET_KEY # Travis repo settings에 설정된 값
bucket: 20180814aoa2team8 # S3 버킷
key: aoa2-application.zip # 빌드 파일을 압축해서 전달
bundle_type: zip
application: Team8-AOA2-Deployer # 웹 콘솔에서 등록한 CodeDeploy 어플리케이션
deployment_group: Woowahan-techcamp-2018 # 웹 콘솔에서 등록한 CodeDeploy 배포 그룹
region: ap-northeast-2
wait-until-deployed: true
on:
repo: wwh-techcamp-2018/team8-AOA2
branch: master