File: publish-snapshot-on-commit.sh

package info (click to toggle)
guice 4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,620 kB
  • ctags: 9,493
  • sloc: xml: 60,913; java: 54,700; sh: 119; jsp: 12; makefile: 10
file content (17 lines) | stat: -rwxr-xr-x 550 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# see https://coderwall.com/p/9b_lfq

if [ "$TRAVIS_REPO_SLUG" == "google/guice" ] && \
   [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && \
   [ "$LABEL" == "mvn" ] && \
   [ "$TRAVIS_PULL_REQUEST" == "false" ] && \
   [ "$TRAVIS_BRANCH" == "master" ]; then
  echo -e "Publishing maven snapshot...\n"

  cd $HOME
  git clone --quiet --branch=travis https://github.com/google/guice travis > /dev/null
  cd -
  
  mvn clean deploy --settings="$HOME/travis/settings.xml" -DskipTests=true -Dmaven.javadoc.skip=true

  echo -e "Published maven snapshot"
fi