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
|
2014-09-19 14:58:24 -04:00
|
|
|
language: java
|
2017-07-25 10:26:37 -04:00
|
|
|
jdk:
|
2019-02-20 20:56:37 -05:00
|
|
|
### Not really openjdk7 - we're tricking travis into using oracle jdk7, since it's technically deprecated for use with Travis
|
|
|
|
- openjdk7
|
2017-07-25 10:26:37 -04:00
|
|
|
- oraclejdk8
|
2018-07-30 13:44:09 -04:00
|
|
|
- oraclejdk9
|
|
|
|
- openjdk10
|
2014-09-19 14:58:24 -04:00
|
|
|
|
2015-10-27 22:09:02 -04:00
|
|
|
before_install:
|
2019-02-20 20:56:37 -05:00
|
|
|
- if [ "${TRAVIS_JDK_VERSION}" == "openjdk7" ]; then export MAVEN_OPTS="-Dhttps.protocols=TLSv1.2 -Xmx512m -XX:MaxPermSize=128m"; fi
|
|
|
|
- if [ "${TRAVIS_JDK_VERSION}" == "openjdk7" ]; then export JAVA_HOME="/usr/lib/jvm/java-7-oracle"; export PATH="${JAVA_HOME}/bin:${PATH}"; fi
|
|
|
|
- if [ "${TRAVIS_JDK_VERSION}" == "openjdk7" ]; then test ! -d "${JAVA_HOME}" && (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
|
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
|
|
|
|
2018-07-12 11:44:14 -04:00
|
|
|
install: true
|
2017-05-13 11:55:00 -04:00
|
|
|
|
2014-09-19 14:58:24 -04:00
|
|
|
script: mvn install
|
2017-05-13 11:55:00 -04:00
|
|
|
|
2015-10-27 22:09:02 -04:00
|
|
|
after_success:
|
2018-07-12 11:44:14 -04:00
|
|
|
- test -z "$BUILD_COVERAGE" || { mvn clean clover:setup test && mvn -pl . clover:clover clover:check coveralls:report; }
|