-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
69 lines (63 loc) · 1.36 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
language: java
jdk:
- oraclejdk8
sudo: false
install: true
script:
- ./webapp/gradlew build
- cd webapp
- ./gradlew test
- ./gradlew war
- cd build/libs
- ls -al
- cd ../../..
- pwd
- ls -al
notifications:
username:
recipients:
branches:
only:
- master
after_success:
- pwd
- ls -al
- mkdir codedeploy_artifact
- cp infrastructure/aws/codedeploy/*.sh .
- cp infrastructure/aws/codedeploy/*.yml .
- zip -r csye6225-web-app-$TRAVIS_JOB_NUMBER.zip webapp/build/libs/ROOT.war *.sh *.yml
- ls -al
- mv csye6225-web-app-$TRAVIS_JOB_NUMBER.zip codedeploy_artifact/
- ls -al
- pwd
- cd codedeploy_artifact
- ls -al
- pwd
- cd ..
- pwd
- ls -al
deploy:
- provider: s3
local_dir: codedeploy_artifact
bucket: $s3_bucket
region: us-east-1
skip_cleanup: true
access_key_id: $access_key_id
secret_access_key: $secret_access_key
on:
branch: master
- provider: codedeploy
access_key_id: $access_key_id
secret_access_key: $secret_access_key
bucket: $s3_bucket
region: us-east-1
key: csye6225-web-app-$TRAVIS_JOB_NUMBER.zip
bundle_type: zip
application: $application
deployment_group: $deployment_group
wait-until-deployed: true
on:
branch: master