Skip to content

Commit

Permalink
Avoid maven publishing from Travis for non-SNAPSHOT versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Negrea authored and jshaughn committed May 22, 2015
1 parent f552164 commit 4d3e446
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ env:
# for pushing the swagger adoc documentation to the website repository
- secure: W06c620h/B/+Va2SoU+9wSHaop9HpULMSUCyo7lSb9lKGQ7JdNSC+MzgkQdjuYuzNM/WGGTPetV9IWCaQ13q6KrXCbxv9Jj2HD1wzalOG7rPSfhHz+7KkryIOO+PNwtV7pV04/R1bPqkfYfzfGVIfl/0NxGlq9gPHCT4EuUW/Zs=
after_success:
- test "${TRAVIS_BRANCH}" = "master" && test "${TRAVIS_PULL_REQUEST}" = "false" && mvn -s .travis.maven.settings.xml deploy -DskipTests && ./.travis.swagger.sh
- PROJECT_VERSION=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\['`
- if [[ "$PROJECT_VERSION" =~ .*SNAPSHOT ]] && [[ "${TRAVIS_BRANCH}" = "master" ]] && [[ "${TRAVIS_PULL_REQUEST}" = "false" ]];
then
mvn -s .travis.maven.settings.xml deploy -DskipTests ;
./.travis.swagger.sh
fi

0 comments on commit 4d3e446

Please sign in to comment.