Skip to content

Commit

Permalink
Trying to get the travis build to run the test app tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ctoestreich committed Feb 26, 2016
1 parent 6224212 commit c51374d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/test/projects/sample/test-apps
Expand Up @@ -4,7 +4,7 @@ clear
rm -rf ~/.m2/repository/org/grails/plugins/redis
cd ../../../../
pwd
grails install
./gradlew install
cd src/test/projects/sample
pwd
grails test-app
./gradlew test-app
24 changes: 2 additions & 22 deletions travis-build.sh
Expand Up @@ -2,25 +2,5 @@
set -e
rm -rf *.zip
./gradlew clean test assemble

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

EXIT_STATUS=0
exit $EXIT_STATUS

#todo: need to add credentials to push, just exit for now
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
cd src/main/test/projects/sample
./test-apps

0 comments on commit c51374d

Please sign in to comment.