-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
59 lines (54 loc) · 1.23 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
language: java
jdk:
- oraclejdk8
sudo: false
install: true
script:
- pwd
- cd webapp/spring-login-master
- chmod +x ./mvnw
- ./mvnw clean install
- cd target
- ls -al
- cd ../../../
- pwd
- ls -al
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/spring-login-master/target/cloudApp-0.0.1.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:
all_branches: true
- provider: codedeploy
access_key_id: $access_key_id
bucket: $s3_bucket
key: csye6225-web-app-${TRAVIS_JOB_NUMBER}.zip
bundle_type: zip
application: $application
deployment_group: $deployment_group
region: us-east-1
secret_access_key: $secret_access_key
wait-until-deployed: true
on:
all_branches: true