diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2015-09-06 00:38:18 +0200 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2015-09-06 00:38:18 +0200 |
commit | bc3519264290df926594bd130f849a34e776da00 (patch) | |
tree | fca015443e50d40f39ad8dcd359fed62d6b4dd4e | |
parent | 1026241b3ad7df98cc91d9d0abf04d1e83ff07fd (diff) | |
download | jacoco-bc3519264290df926594bd130f849a34e776da00.tar.gz |
Deploy snapshots from Travis
-rwxr-xr-x | .travis.sh | 8 | ||||
-rw-r--r-- | .travis/settings.xml | 21 |
2 files changed, 28 insertions, 1 deletions
@@ -57,7 +57,13 @@ esac # TODO(Godin): see https://github.com/jacoco/jacoco/issues/300 about "bytecode.version" case "$JDK" in 5) - mvn -V -B -e verify -Djdk.version=1.5 --toolchains=./.travis/toolchains.xml + if [[ ${TRAVIS_PULL_REQUEST} == 'false' && ${TRAVIS_BRANCH} == 'master' ]] + then + # goal "deploy:deploy" used directly instead of "deploy" phase to avoid pollution of Maven repository by "install" phase + mvn -V -B -e -f org.jacoco.build verify deploy:deploy -DdeployAtEnd -Djdk.version=1.5 --toolchains=./.travis/toolchains.xml --settings=./.travis/settings.xml + else + mvn -V -B -e verify -Djdk.version=1.5 --toolchains=./.travis/toolchains.xml + fi ;; 6) mvn -V -B -e verify -Dbytecode.version=1.6 diff --git a/.travis/settings.xml b/.travis/settings.xml new file mode 100644 index 00000000..0c27d509 --- /dev/null +++ b/.travis/settings.xml @@ -0,0 +1,21 @@ +<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> + <servers> + <server> + <id>sonatype-nexus-snapshots</id> + <username>${env.SONATYPE_USERNAME}</username> + <password>${env.SONATYPE_PASSWORD}</password> + </server> + </servers> + <profiles> + <profile> + <id>default</id> + <properties> + <https.protocols>TLSv1</https.protocols> + </properties> + </profile> + </profiles> + <activeProfiles> + <activeProfile>default</activeProfile> + </activeProfiles> +</settings> |