From c51374d2601e6046c924ef2687c3076395c2df5d Mon Sep 17 00:00:00 2001 From: Christian Oestreich Date: Fri, 26 Feb 2016 10:23:25 -0600 Subject: [PATCH] Trying to get the travis build to run the test app tests --- src/test/projects/sample/test-apps | 4 ++-- travis-build.sh | 24 ++---------------------- 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/src/test/projects/sample/test-apps b/src/test/projects/sample/test-apps index 2e10f04..abeac75 100755 --- a/src/test/projects/sample/test-apps +++ b/src/test/projects/sample/test-apps @@ -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 diff --git a/travis-build.sh b/travis-build.sh index 57bb5b0..127527d 100755 --- a/travis-build.sh +++ b/travis-build.sh @@ -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