forked from JodaOrg/joda-time
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (26 loc) · 921 Bytes
/
.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
# This file enables the Travis continuous integration system, which
# automatically builds and tests joda-time for each GitHub commit or
# pull request on three separate JDKs.
#
# For more information, see https://travis-ci.org
sudo: false
language: java
jdk:
- oraclejdk8
- oraclejdk7
cache:
directories:
- "$HOME/.m2/repository"
before_cache:
- rm -rf $HOME/.m2/repository/org/joda/time
# install
install:
- mvn --version
script:
- mvn install -e -B
after_success:
- if [[ $TRAVIS_TAG =~ ^v.*$ ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then travis_wait 40 mvn site-deploy -e -B --settings .github/maven-settings.xml; fi
# secure keys for GITHUB_TOKEN
env:
global:
secure: UK9A4eHPOP6XkYbST1kpv3gVEZTBqp79eCF0nqpXejbXihY58MNVZ0aGt8IM/ZThO/UoK+AxWjaSLljE2Neo4ehxvRHsRG0bIhAoCBUjP6f6vuMYTZlRNb9W+NM3RjXvrQGnCM3PTckWaFQ6i5Ny4e1GuETSdh96Yk7WNn6DMJM=