Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Commit

Permalink
Modified build to use gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Waldo committed Oct 28, 2015
1 parent 15048fd commit 1e58c9a
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions travis-build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
#!/bin/bash
set -e
rm -rf *.zip
./grailsw refresh-dependencies --non-interactive
./grailsw test-app --non-interactive
./grailsw package-plugin --non-interactive
./grailsw doc --pdf --non-interactive
./gradlew clean test assemble

filename=$(find build/libs -name "*.jar" | head -1)
filename=$(basename "$filename")

EXIT_STATUS=0
echo "Publishing archives for branch $TRAVIS_BRANCH"
if [[ -n $TRAVIS_TAG ]] || [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then

echo "Publishing archives"

if [[ -n $TRAVIS_TAG ]]; then
./gradlew bintrayUpload || EXIT_STATUS=$?
else
./gradlew publish || EXIT_STATUS=$?
fi
fi

exit $EXIT_STATUS

0 comments on commit 1e58c9a

Please sign in to comment.