-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
75 lines (75 loc) · 2.64 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
70
71
72
73
74
75
dist: trusty
language: java
jdk:
- openjdk11
notifications:
email:
recipients:
on_success: change
on_failure: always
slack: lyrasis:ctcQAEKjVcDFe9bTyMfH6PtI
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libaio1
install:
- mvn install -DskipTests -DskipDeploy --batch-mode
script:
- mvn test -DskipIntTests
sudo: true
deploy:
- provider: s3
access_key_id: $ARTIFACTS_KEY
secret_access_key: $ARTIFACTS_SECRET
bucket: $ARTIFACTS_BUCKET
region: $ARTIFACTS_REGION
skip_cleanup: true
local_dir: $TRAVIS_BUILD_DIR/target
upload-dir: duracloud-bridge/master
on:
branch: master
- provider: s3
access_key_id: $ARTIFACTS_KEY
secret_access_key: $ARTIFACTS_SECRET
bucket: $ARTIFACTS_BUCKET
region: $ARTIFACTS_REGION
skip_cleanup: true
local_dir: $TRAVIS_BUILD_DIR/target
upload-dir: duracloud-bridge/tagged-releases/$TRAVIS_TAG
on:
tags: true
- provider: s3
access_key_id: $ARTIFACTS_KEY
secret_access_key: $ARTIFACTS_SECRET
bucket: $ARTIFACTS_BUCKET
region: $ARTIFACTS_REGION
skip_cleanup: true
local_dir: $TRAVIS_BUILD_DIR/target
upload-dir: duracloud-bridge/develop
on:
branch: develop
- provider: releases
api_key:
secure: "EhlLR4VsGbHmMrcDuHF8cb8B2aV15wFbJVXw03/OlWjteSlq5KGXt3LNM7hV7ELW5qC5P6KgMTKzkDjb4BhDZIG3GcPw8L/Xukwz3pEmJZZyFbYhG+W51uFjYczjkJEdvmvWnlDeZzmFgqNxfkGLWSPpCL6sSnqUlI+SvkZku/4="
skip_cleanup: true
file-glob: true
file:
- "target/duracloud-*-apidocs.zip"
- "target/duracloud-bridge-beanstalk-v*.zip"
- "target/sha512sum.txt.asc"
on:
tags: true
env:
global:
- secure: "SZ3SrQHMcdfAU3UlKnQnu6xwuOz9lanrewQ6YorRSsh3Kvpj13Qyrwu4nEXQ9cNKieeiMLk0A0NU7sqQ1xZ/9JFcwWjJ2lZ5lISEAlqj/h4QL5OnxkubdlN/hQwz/Oh53f/yC/J6mC0tKdJ2GxHZ9TdlTj2jxc+S9/4E4SY2bys="
- # ^^ SONATYPE_USERNAME
- secure: "24zlG+vW34kWLohCGtOt0tRW/z75YmYPFi1gz4xQMsESKI7TRdG7erFdrU8iJ0d9IZTv/FLJqItQ1PmQvi5/q2zukPgHqgJcyuh1cS1D5m9jvDXzfgFrXCzSehF/Uu3jpx4U4mCcPQAJaYnYLPOn2GSma7wzwwVH3Eol9ceAMMw="
- # ^^ SONATYPE_PASSWORD
- secure: "tS23oHpw1Y0U+BgYtTt77jrBO05ZiI3zDhzumMS9957FMEwg15DW4ed/oEiI3D6A3l4dKcuzasnWMcDTRIkGFU/PqqS13SDckXe598nHDcdwf48XAip50YBYQIi5CMQJ28//ZZRnxPXzwhjgHwR81eIPz5ke4oURe1MDYUSpiJo="
- # ^^ GPG_KEY_NAME
- secure: "1oMSmB71A/j7W7PPi8s58dXcp9Fs5Nl8rB79K+/bGTIq5M7rS9bkuYnHBtnZ0yAmg6l05BIKlyh42I2J5zInHJ2Q6W1iLzBgicpbGCZwXIIbkx2OchYDBl2ILsI45okvUXp4uB8TMsepdbcAw8gx0xUg0zmRBA6LxwE6dR8OMTQ="
- # ^^ GPG_PASSPHRASE
after_success:
- chmod +x resources/travis/*.sh
- ./resources/travis/before-deploy.sh
- ./resources/travis/deploy.sh