1#!/bin/bash
2
3# see https://coderwall.com/p/9b_lfq
4
5set -e -u
6
7if [ "$TRAVIS_REPO_SLUG" == "google/jimfs" ] && \
8   [ "$TRAVIS_JDK_VERSION" == "oraclejdk7" ] && \
9   [ "$TRAVIS_PULL_REQUEST" == "false" ] && \
10   [ "$TRAVIS_BRANCH" == "master" ]; then
11  echo "Publishing Maven snapshot..."
12
13  mvn clean source:jar javadoc:jar deploy --settings="util/settings.xml" -DskipTests=true
14
15  echo "Maven snapshot published."
16fi
17