forked from zeekgwang/dreamtree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (49 loc) · 1.3 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
language: java
jdk:
- openjdk8
branches:
only:
- master
# Travis CI 서버의 HOME
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.gradle'
script: "./gradlew clean build"
before_install:
- chmod +x gradlew
before_deploy:
- zip -r dreamtree-webservice *
- mkdir -p deploy
- mv dreamtree-webservice.zip deploy/dreamtree-webservice.zip
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY # Travis repo settings에 설정값
secret_access_key: $AWS_SECRET_KEY # Travis repo settings에 설정값
bucket: dreamtree-deploy
region: ap-northeast-2
skip_cleanup: true
acl: public_read
local_dir: deploy
wait-until-deployed: true
on:
repo: zeekgwang/dreamtree
branch: master
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY # Travis repo settings에 설정값
secret_access_key: $AWS_SECRET_KEY # Travis repo settings에 설정값
bucket: dreamtree-deploy
key: dreamtree-webservice.zip
bundle_type: zip
application: dreamtree-webservice
deployment_group: dreamtree-webservice-group
region: ap-northeast-2
wait-until-deployed: true
on:
repo: zeekgwang/dreamtree
branch: master
# CI 실행 완료시 메일로 알람
notifications:
email:
recipients:
- zeekgwang@gmail.com