1set -eu 2 3if [ "$TRAVIS_REPO_SLUG" == "google/volley" ] && \ 4 [ "$TRAVIS_PULL_REQUEST" == "false" ] && \ 5 [ "$TRAVIS_BRANCH" == "master" ]; then 6 echo -e "Publishing snapshot build to OJO...\n" 7 8 ./gradlew artifactoryPublish 9 10 echo -e "Published snapshot build to OJO" 11else 12 echo -e "Not publishing snapshot" 13fi