2014-09-19 14:58:24 -04:00
|
|
|
# https://travis-ci.org/jwtk/jjwt
|
2017-05-13 11:55:00 -04:00
|
|
|
|
2018-07-12 11:44:14 -04:00
|
|
|
#sudo: required
|
2019-09-12 17:43:41 -04:00
|
|
|
dist: trusty
|
2014-09-19 14:58:24 -04:00
|
|
|
language: java
|
2017-07-25 10:26:37 -04:00
|
|
|
jdk:
|
2019-07-13 14:17:17 -04:00
|
|
|
- openjdk7 # not really openjdk7 - we're just using this travis placeholder for our own Oracle JDK 7 installation
|
2017-07-25 10:26:37 -04:00
|
|
|
- oraclejdk8
|
2018-07-30 13:44:09 -04:00
|
|
|
- oraclejdk9
|
|
|
|
- openjdk10
|
2019-09-24 18:57:06 -04:00
|
|
|
- openjdk11
|
2020-06-08 14:00:59 -04:00
|
|
|
- openjdk14
|
2020-02-04 03:10:39 -05:00
|
|
|
|
2019-10-05 13:08:52 -04:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.m2
|
2014-09-19 14:58:24 -04:00
|
|
|
|
2015-10-27 22:09:02 -04:00
|
|
|
before_install:
|
2019-07-13 14:17:17 -04:00
|
|
|
- echo "TRAVIS_JDK_VERSION is ${TRAVIS_JDK_VERSION}"
|
2019-09-17 18:11:56 -04:00
|
|
|
- export MVN_CMD="./mvnw --no-transfer-progress" # hide verbose download messages (log spam)
|
2019-07-13 14:17:17 -04:00
|
|
|
- |
|
|
|
|
if [[ "${TRAVIS_JDK_VERSION}" == "openjdk7" ]]; then
|
|
|
|
|
|
|
|
export MAVEN_OPTS="-Dhttps.protocols=TLSv1.2 -Xmx512m -XX:MaxPermSize=128m"
|
|
|
|
export JAVA_HOME="/usr/lib/jvm/java-7-oracle" # Set JAVA_HOME to where we want to install Oracle JDK 7
|
|
|
|
export PATH="${JAVA_HOME}/bin:${PATH}"
|
|
|
|
|
|
|
|
if [[ ! -d "${JAVA_HOME}" ]]; then
|
|
|
|
# Download and install Oracle JDK 7:
|
|
|
|
wget https://s3.amazonaws.com/d2fbee19-5fe2-425f-ae11-cd25b35dc99a/jdk-7u80-linux-x64.tar.gz -O /tmp/jdk-7u80-linux-x64.tar.gz
|
|
|
|
tar xvfz /tmp/jdk-7u80-linux-x64.tar.gz -C /tmp
|
|
|
|
sudo mv /tmp/jdk1.7.0_80 "${JAVA_HOME}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Download and install JCE Unlimited Strength Crypto policies for Oracle JDK 7:
|
|
|
|
curl -q -L -C - https://238dj3282as03k369.s3-us-west-1.amazonaws.com/UnlimitedJCEPolicyJDK7.zip -o /tmp/UnlimitedJCEPolicyJDK7.zip
|
|
|
|
sudo unzip -oj -d "$JAVA_HOME/jre/lib/security" /tmp/UnlimitedJCEPolicyJDK7.zip \*/\*.jar
|
|
|
|
rm /tmp/UnlimitedJCEPolicyJDK7.zip
|
|
|
|
fi
|
|
|
|
# If on JDK 8, ensure build coverage assertions are run (we only need to run this on one JDK to reduce overall build times):
|
2016-07-03 23:38:25 -04:00
|
|
|
- export BUILD_COVERAGE="$([ $TRAVIS_JDK_VERSION == 'oraclejdk8' ] && echo 'true')"
|
2017-05-13 11:55:00 -04:00
|
|
|
|
2019-09-17 18:11:56 -04:00
|
|
|
# prints the Maven, Java, and OS info/version
|
|
|
|
install: $MVN_CMD --version
|
2017-05-13 11:55:00 -04:00
|
|
|
|
2019-07-13 14:17:17 -04:00
|
|
|
script:
|
2019-09-17 18:11:56 -04:00
|
|
|
- $MVN_CMD install
|
|
|
|
- test -z "$BUILD_COVERAGE" || { $MVN_CMD clean clover:setup test && $MVN_CMD -pl . clover:clover clover:check coveralls:report; }
|