1c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlin# see https://coderwall.com/p/9b_lfq 2c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlin 3c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlinif [ "$TRAVIS_REPO_SLUG" == "google/guice" ] && \ 4c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlin [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && \ 5c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlin [ "$LABEL" == "mvn" ] && \ 6c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlin [ "$TRAVIS_PULL_REQUEST" == "false" ] && \ 7c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlin [ "$TRAVIS_BRANCH" == "master" ]; then 8c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlin echo -e "Publishing maven snapshot...\n" 9c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlin 10c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlin cd $HOME 11c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlin git clone --quiet --branch=travis https://github.com/google/guice travis > /dev/null 12c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlin cd - 13c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlin 14c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlin mvn clean deploy --settings="$HOME/travis/settings.xml" -DskipTests=true -Dmaven.javadoc.skip=true 15c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlin 16c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlin echo -e "Published maven snapshot" 17c15e74affaa89bcf9499aa14171040a9f991e4e4Sam Berlinfi 18