jjwt/.travis.yml

24 lines
964 B
YAML
Raw Normal View History

2014-09-19 14:58:24 -04:00
# https://travis-ci.org/jwtk/jjwt
2017-05-13 11:55:00 -04:00
#sudo: required
2014-09-19 14:58:24 -04:00
language: java
jdk:
- oraclejdk7
- oraclejdk8
- oraclejdk9
- oraclejdk10
- openjdk10
2014-09-19 14:58:24 -04:00
before_install:
- if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" ]; then export MAVEN_OPTS="-Dhttps.protocols=TLSv1.2 -Xmx512m -XX:MaxPermSize=128m"; fi
- if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" ]; then export JAVA_HOME="/usr/lib/jvm/java-7-oracle"; export PATH="${JAVA_HOME}/bin:${PATH}"; fi
- if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" ]; then test ! -d "${JAVA_HOME}" && (curl http://ftp.osuosl.org/pub/funtoo/distfiles/oracle-java/jdk-7u80-linux-x64.tar.gz | sudo tar xz -C /usr/lib/jvm; sudo mv /usr/lib/jvm/jdk1.7.0_80 "${JAVA_HOME}"); fi
- export BUILD_COVERAGE="$([ $TRAVIS_JDK_VERSION == 'oraclejdk8' ] && echo 'true')"
2017-05-13 11:55:00 -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
after_success:
- test -z "$BUILD_COVERAGE" || { mvn clean clover:setup test && mvn -pl . clover:clover clover:check coveralls:report; }