-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (51 loc) · 1.58 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
language: java
branches:
only:
- master
- Milestone-5
notifications:
email:
- bhandar.anuj@gmail.com
- sagarkrkv@gmail.com
jdk:
- oraclejdk8
sudo: false
install: true
script: mvn clean install
services:
- docker
after_success:
- docker build -t sagarkrkv/airavata_api_server:latest .
- docker login -u="$DOCK_UNAME" -p="$DOCK_PWD"
- docker push sagarkrkv/airavata_api_server:latest
before_deploy:
- zip -r spring17-API-Server.zip build-scripts mock-airavata-api-client mock-airavata-api-java-stubs mock-airavata-api-php-stubs mock-airavata-api-server mock-api-interface-descriptions appspec.yml pom.xml || true
- mkdir -p "dpl_cd_upload"
- mv spring17-API-Server.zip dpl_cd_upload/spring17-API-Server.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: spring17-api-gateway-travis-ci
region: us-east-2
skip_cleanup: true
acl: public_read
detect_encoding: true
on:
repo: airavata-courses/spring17-API-Server
all_branches: true
- provider: codedeploy
access_key_id: $AWS_ACCESS_KEY # declared in Travis repo settings
secret_access_key: $AWS_SECRET_KEY
bucket: spring17-api-gateway-travis-ci
key: spring17-API-Server.zip
bundle_type: zip
application: spring17-api-gateway-codeDeployApp
deployment_group: production
region: us-east-2
on:
repo: airavata-courses/spring17-API-Server
all_branches: true
after_deploy:
- echo "Performing after deploy procedures..."