-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
41 lines (40 loc) · 6.05 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
dist: trusty
language: java
jdk:
- openjdk8
before_install:
## see https://docs.travis-ci.com/user/encrypting-filest/ on how travis encrypt/decrypt files
## encrypted secrect key for gpg private key for artifact sigining
- if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then openssl aes-256-cbc -K $encrypted_4f2072688125_key -iv $encrypted_4f2072688125_iv -in maintainer-secring.gpg.enc -out maintainer-secring.gpg -d; fi
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
script:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- ./gradlew check
## to avoid the "Current Git branch is "(HEAD detached at 004bae3)" and not "master"" error from the release plugin
- if [ "${TRAVIS_PULL_REQUEST}" == "false" ];then git checkout master;git remote set-url
origin "https://[email protected]/yahoo/parsec-libraries";./gradlew release;fi
- if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then ./gradlew publish closeAndReleaseSonatypeStagingRepository; fi
env:
global:
## SIGNING_KEYID
- secure: aTby+jTNOP9tpVZUq0jp9BE7f+0ynapOCnuAvPWFkAm48S+LmAncbmlb6TODd0G1TZABTGJUswJOSRp20CKRrb2R1OyJG/hiIgBWPwQbF/zUyJ6dxzD/N33J8Q2DtXmCePt3duGMiGcsEYCYUd3mZZ/Bo1ZskyJa0PDUjrgtmB2Zm3MMJITB0WDJtK211KYSoL7D6KxrZIURDwq/Gj/jLbAz6qyhXQ4UiPWChjxVGIE+6NZA/01guW8dE7j4tlEd5JxKL4SVvap1SdxN2kxeIx6aApUi82zAP06+Sa3uEy9bFfebiM9LtcE876QggmEPYRMTy0QL6emc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