From de38f7add09e69cb5ff970d1bada079a162358e7 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Wed, 18 Apr 2018 00:54:15 -0400 Subject: [PATCH] Add .travis.yml --- .travis-settings.xml | 9 +++++++++ .travis.yml | 25 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .travis-settings.xml create mode 100644 .travis.yml diff --git a/.travis-settings.xml b/.travis-settings.xml new file mode 100644 index 0000000..a9a9c68 --- /dev/null +++ b/.travis-settings.xml @@ -0,0 +1,9 @@ + + + + sonatype-nexus-snapshots + ${env.SONATYPE_USERNAME} + ${env.SONATYPE_PASSWORD} + + + \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7b9a5d6 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: java +sudo: false +addons: + apt: + packages: + - openjdk-6-jdk +dist: trusty +jdk: + - openjdk6 + +install: + - if [[ "${TRAVIS_JDK_VERSION}" == 'openjdk6' ]]; then + export CUSTOM_MVN_VERION="3.2.5" + echo "Download Maven ${CUSTOM_MVN_VERION}...."; + wget https://archive.apache.org/dist/maven/maven-3/${CUSTOM_MVN_VERION}/binaries/apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1; + unzip -qq apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1; + export M2_HOME=$PWD/apache-maven-${CUSTOM_MVN_VERION}; + export PATH=$M2_HOME/bin:$PATH; + mvn -version; + fi + +after_success: + - if [ "${TRAVIS_JDK_VERSION}" == 'openjdk8' ] || [ "${TRAVIS_JDK_VERSION}" == 'openjdk6' ]; then + mvn deploy --settings .travis-settings.xml -DskipTests=true -B || travis_terminate 1; + fi