diff --git a/.travis.yml b/.travis.yml index dd8e710..f670e1b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,10 @@ jdk: install: - mvn install -DskipTests=true -script: mvn test +script: + - mvn test ; export MAVEN_RESULT=$? + - if [ "$MAVEN_RESULT" -ne 0 ]; then exit 1; fi + - mvn clean deploy --quiet --settings settings.xml ; export MAVEN_RESULT=$? after_success: - mvn clean test jacoco:report coveralls:report @@ -14,4 +17,10 @@ after_success: notifications: email: - richard.vannieuwenhoven@adesso.at - - elonen@iki.fi \ No newline at end of file + - elonen@iki.fi + +env: + global: + - secure: "OtD0z3y4/OjSzg8irVD8v/u0TElcw8AiCCXb7a0UQEnTpGxcf5DOdkvHv0hF4xjHKFtlMMHxevW+a4C4NuFR8it8ZJ/i2m24reB28JicDcRQY9nwV/BR/T08CRG9KDz5EuTHgfPJDF0y+5MiVNwJVhHFviBWKuXyIuYouJ5IHgc=" + - secure: "tgTVycNLwYDM3U0EVK1TkffylQHfZihvSDC9QoZEo+wz9aBBLoAtUJP7DWltRQFOkfTeGltGHEfGM2/qkIG6Wz+hNFG/fveHqyI01JWXc64d7yBm7agaCP5uTtt2wjaZ7ZK5Mps5QoufblYu+j9gb2v31t9IdsJ9PUs0+wgE/WU=" + \ No newline at end of file diff --git a/settings.xml b/settings.xml new file mode 100644 index 0000000..6d09214 --- /dev/null +++ b/settings.xml @@ -0,0 +1,15 @@ + + + + + + sonatype-nexus-staging + ${env.CI_DEPLOY_USERNAME} + ${env.CI_DEPLOY_PASSWORD} + + + + + + + \ No newline at end of file