-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
58 lines (54 loc) · 1.53 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
language: java
jdk:
- oraclejdk8
sudo: false
install: true
before_script:
- cd Science_Gateway_Apex/src/main/resources/scripts
- source replace_props.sh
- cd -
- cd SGA_Apex_REST_API_WAR/src/main/resources/scripts
- source replace_props.sh
- cd -
- cd SGA_Apex_UI_WEB/src/resources/scripts
- source replace_props.sh
- cd -
script: cd "SGA_Build" && mvn -e clean install
before_deploy:
- cd ..
- zip -r SGA_Apex_Application.zip Science_Gateway_Apex SGA_Apex_REST_API_WAR SGA_Apex_UI_WEB appspec.yml || true
- mkdir -p "dpl_cd_upload"
- mv SGA_Apex_Application.zip dpl_cd_upload/SGA_Apex_Application.zip || true
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY # declared in Travis repo settings
secret_access_key: $AWS_SECRET_KEY
local_dir: dpl_cd_upload
bucket: sga-team-apex
region: us-west-2
skip_cleanup: true
acl: public_read
detect_encoding: true
on:
repo: airavata-courses/TeamApex
all_branches: true
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY # declared in Travis repo settings
secret_access_key: $AWS_SECRET_KEY
bucket: sga-team-apex
key: SGA_Apex_Application.zip
bundle_type: zip
application: SGA-TeamApex
deployment_group: SGA-TeamApex
region: us-west-2
on:
repo: airavata-courses/TeamApex
all_branches: true
after_deploy:
- echo "Performing after deploy procedures..."
notifications:
email:
recipients: