1 # see https://coderwall.com/p/9b_lfq 2 3 if [ "$TRAVIS_REPO_SLUG" == "google/dagger" ] && \ 4 [ "$TRAVIS_JDK_VERSION" == "oraclejdk7" ] && \ 5 [ "$TRAVIS_PULL_REQUEST" == "false" ] && \ 6 [ "$TRAVIS_BRANCH" == "master" ]; then 7 echo -e "Publishing maven snapshot...\n" 8 9 mvn clean source:jar deploy --settings="util/settings.xml" -DskipTests=true -Dinvoker.skip=true -Dmaven.javadoc.skip=true 10 11 echo -e "Published maven snapshot" 12 fi 13