forked from spotify-web-api-java/spotify-web-api-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (41 loc) · 1.42 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
os: linux
language: java
jobs:
include:
- jdk: oraclejdk9
before_install:
- rm "${JAVA_HOME}/lib/security/cacerts"
- ln -s /etc/ssl/certs/java/cacerts "${JAVA_HOME}/lib/security/cacerts"
- jdk: openjdk12
- jdk: oraclejdk12
env:
global:
- secure: hiAE0Gt7pcTmcQ/rjfK+KB+Mj1O3LaEM6wNgFleG04fuPbsUgTpF3U1HMTfEvU8nB0AEoIHgPZ2qWHIqGdJ23HfC7pTXtZXy8YSMOnPpTx8j9+qX0i7kJsqA6CNd+5i1CN0aM0uSd2CXRj7CFpwBa+5kfQmsml90oG3mev1MXcs=
- # ^^SONATYPE_USERNAME
- secure: Sa7tSlz29eOhOazmyGAfv7tFtaZjI1PMtgQJ3fFFZ2EVaAbxxGU/l+TVmcCOxOt7OdCf1MTgB9/dRGPZAuVdtelPIytoJEpB7U2qBci72K1at2zqKF6dq0pPswuwdbkqJeAf39M3J1nZcXKXwirU/J4OfwWyi5qwXpM8pO7W/qM=
- # ^^SONATYPE_PASSWORD
- GPG_KEY_NAME=C546418B
- secure: COT0/WEaXSsKLLih/8+0/kfn1cu96Vnu7Xpf4iDDS0qkTZ1IDNgYbiAC1kVEkKJuNxxpABg61rnI9eed5Dj4db5shhqoGCRGWf1v/+ppr8XxZVORa3v8KqrO9XNIOF44Hh+6jsWMZOVFtYy6QjlbHyh3HsbHoNe9eIuI/q3pggU=
- # ^^GPG_PASSPHRASE
cache:
directories:
- $HOME/.m2
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- ./travis/before-deploy.sh
- cp ./travis/.m2.settings.xml $HOME/.m2/settings.xml
deploy:
provider: script
cleanup: false
script: "if [ '${TRAVIS_JDK_VERSION}' = 'oraclejdk12' ]; then mvn deploy -P release -DskipTests=true ; fi"
on:
repo: spotify-web-api-java/spotify-web-api-java
branch:
- master
- v1
tags: true
notifications:
email:
on_success: never
on_failure: change