Add .travis.yml
This commit is contained in:
parent
78f73bf494
commit
de38f7add0
9
.travis-settings.xml
Normal file
9
.travis-settings.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<settings>
|
||||
<servers>
|
||||
<server>
|
||||
<id>sonatype-nexus-snapshots</id>
|
||||
<username>${env.SONATYPE_USERNAME}</username>
|
||||
<password>${env.SONATYPE_PASSWORD}</password>
|
||||
</server>
|
||||
</servers>
|
||||
</settings>
|
25
.travis.yml
Normal file
25
.travis.yml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user