File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed
grails-core/src/test/groovy/grails/util Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ apply plugin: 'idea'
2121ext {
2222 bintrayPublish = false
2323 // Sets release version
24- grailsVersion = ' 3.0.12.BUILD-SNAPSHOT '
24+ grailsVersion = ' 3.0.12'
2525 isBuildSnapshot = grailsVersion. endsWith(" .BUILD-SNAPSHOT" )
2626 isTravisBuild = System . getenv(). get(" TRAVIS" ) == ' true'
2727
Original file line number Diff line number Diff line change 3535public class GrailsUtilTests extends TestCase {
3636
3737 public void testGrailsVersion () {
38- assertEquals ("3.0.12.BUILD-SNAPSHOT " , GrailsUtil .getGrailsVersion ());
38+ assertEquals ("3.0.12" , GrailsUtil .getGrailsVersion ());
3939 }
4040
4141 @ Override
Original file line number Diff line number Diff line change @@ -54,8 +54,18 @@ if [[ $TRAVIS_PULL_REQUEST == 'false' && $EXIT_STATUS -eq 0
5454 echo " Running Gradle publish for branch $TRAVIS_BRANCH "
5555
5656 if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
57- ./gradlew -Psigning.keyId=" $SIGNING_KEY " -Psigning.password=" $SIGNING_PASSPHRASE " -Psigning.secretKeyRingFile=" ${TRAVIS_BUILD_DIR} /secring.gpg" publish uploadArchives closeAndPromoteRepository || EXIT_STATUS=$?
58- ./gradlew assemble || EXIT_STATUS=$?
57+ ./gradlew -Psigning.keyId=" $SIGNING_KEY " -Psigning.password=" $SIGNING_PASSPHRASE " -Psigning.secretKeyRingFile=" ${TRAVIS_BUILD_DIR} /secring.gpg" publish uploadArchives -x grails-bom:uploadArchives -x grails-dependencies:uploadArchives || EXIT_STATUS=$?
58+ ./gradlew closeAndPromoteRepository
59+
60+ if [[ $EXIT_STATUS == 0 ]]; then
61+ ./gradlew --stop
62+ ./gradlew -Psigning.keyId=" $SIGNING_KEY " -Psigning.password=" $SIGNING_PASSPHRASE " -Psigning.secretKeyRingFile=" ${TRAVIS_BUILD_DIR} /secring.gpg" grails-dependencies:uploadArchives grails-bom:uploadArchives || EXIT_STATUS=$?
63+ ./gradlew closeAndPromoteRepository
64+ fi
65+
66+ if [[ $EXIT_STATUS == 0 ]]; then
67+ ./gradlew assemble || EXIT_STATUS=$?
68+ fi
5969
6070 # Configure GIT
6171 git config --global user.name " $GIT_NAME "
You can’t perform that action at this time.
0 commit comments