1# see https://coderwall.com/p/9b_lfq
2
3if [ "$TRAVIS_REPO_SLUG" == "google/auto" ] && \
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 -f build-pom.xml clean source:jar deploy --settings="util/settings.xml" -DskipTests=true -Dmaven.javadoc.skip=true
10
11  echo -e "Published maven snapshot"
12fi
13