Skip to content

Commit 0149ec7

Browse files
committed
Prepare Travis to complete only the steps that failed due to yesterday’s Travis outage
1 parent 18c8965 commit 0149ec7

File tree

2 files changed

+62
-62
lines changed

2 files changed

+62
-62
lines changed

.travis.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ sudo: false
33
jdk:
44
- oraclejdk7
55
env:
6-
matrix:
7-
- GRADLE_FLAGS="--stacktrace " GRADLE_CMD="test -x grails-test-suite-web:test"
8-
- GRADLE_FLAGS="--stacktrace" GRADLE_CMD="grails-test-suite-web:test"
9-
- GRADLE_FLAGS="--stacktrace --info" GRADLE_CMD="integrationTest"
6+
# matrix:
7+
# - GRADLE_FLAGS="--stacktrace " GRADLE_CMD="test -x grails-test-suite-web:test"
8+
# - GRADLE_FLAGS="--stacktrace" GRADLE_CMD="grails-test-suite-web:test"
9+
# - GRADLE_FLAGS="--stacktrace --info" GRADLE_CMD="integrationTest"
1010
global:
1111
- TERM=dumb
1212
- MALLOC_ARENA_MAX=1
@@ -34,14 +34,14 @@ install: /bin/true
3434
script:
3535
- ./travis-build.sh
3636
after_success:
37-
- python ./travis/travis_after_all.py
38-
- export $(cat .to_export_back)
37+
# - python ./travis/travis_after_all.py
38+
# - export $(cat .to_export_back)
3939
- ./travis-publish-archives.sh
40-
- ./trigger-dependent-build.sh
41-
after_failure:
42-
- python ./travis/travis_after_all.py
43-
- export $(cat .to_export_back)
44-
- ./travis-after-failure.sh
40+
# - ./trigger-dependent-build.sh
41+
# after_failure:
42+
# - python ./travis/travis_after_all.py
43+
# - export $(cat .to_export_back)
44+
# - ./travis-after-failure.sh
4545
deploy:
4646
provider: releases
4747
api_key:
@@ -52,8 +52,8 @@ deploy:
5252
repo: grails/grails-core
5353
tags: true
5454
all_branches: true
55-
after_deploy:
56-
- ./gradlew sdkMajorRelease
55+
# after_deploy:
56+
# - ./gradlew sdkMajorRelease
5757
cache:
5858
directories:
5959
- $HOME/.gradle

travis-publish-archives.sh

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ echo "Project Version: '$grailsVersion'"
1010
echo "EXIT STATUS of build: '$EXIT_STATUS'"
1111

1212
# use travis_after_all.py for publishing only after all builds are successful.
13-
if [[ "$BUILD_LEADER" == "YES" ]]; then
14-
if [[ "$BUILD_AGGREGATE_STATUS" != "others_succeeded" ]]; then
15-
echo "Some builds failed, not publishing."
16-
exit 0
17-
fi
18-
else
19-
# not build leader, exit
20-
echo "Not build leader, exiting"
21-
exit 0
22-
fi
13+
# if [[ "$BUILD_LEADER" == "YES" ]]; then
14+
# if [[ "$BUILD_AGGREGATE_STATUS" != "others_succeeded" ]]; then
15+
# echo "Some builds failed, not publishing."
16+
# exit 0
17+
# fi
18+
# else
19+
# # not build leader, exit
20+
# echo "Not build leader, exiting"
21+
# exit 0
22+
# fi
2323

2424

2525
if [[ $TRAVIS_PULL_REQUEST == 'false'
@@ -46,7 +46,7 @@ if [[ $TRAVIS_PULL_REQUEST == 'false'
4646
echo "Running Gradle publish for branch $TRAVIS_BRANCH"
4747

4848
if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
49-
./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=$?
49+
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" uploadArchives -x grails-bom:uploadArchives -x grails-dependencies:uploadArchives || EXIT_STATUS=$?
5050
./gradlew closeAndPromoteRepository
5151

5252
if [[ $EXIT_STATUS == 0 ]]; then
@@ -62,44 +62,44 @@ if [[ $TRAVIS_PULL_REQUEST == 'false'
6262
fi
6363

6464
# Configure GIT
65-
git config --global credential.helper "store --file=~/.git-credentials"
66-
echo "https://$GH_TOKEN:@github.com" > ~/.git-credentials
67-
68-
git config --global user.name "$GIT_NAME"
69-
git config --global user.email "$GIT_EMAIL"
70-
71-
# Tag the Profile Repo
72-
git clone https://${GH_TOKEN}@github.com/grails/grails-profile-repository.git
73-
cd grails-profile-repository
74-
75-
echo "grailsVersion=${TRAVIS_TAG:1}" > profiles/gradle.properties
76-
git add profiles/gradle.properties
77-
git commit -m "Release $TRAVIS_TAG profiles"
78-
git tag $TRAVIS_TAG
79-
git push --tags
80-
git push
81-
cd ..
82-
83-
# Tag and release the docs
84-
git clone https://${GH_TOKEN}@github.com/grails/grails-doc.git grails-doc
85-
cd grails-doc
86-
87-
echo "grails.version=${TRAVIS_TAG:1}" > gradle.properties
88-
git add gradle.properties
89-
git commit -m "Release $TRAVIS_TAG docs"
90-
git tag $TRAVIS_TAG
91-
git push --tags
92-
git push
93-
cd ..
94-
95-
# Update the website
96-
git clone https://${GH_TOKEN}@github.com/grails/grails-static-website.git
97-
cd grails-static-website
98-
echo -e "${TRAVIS_TAG:1}" >> generator/src/main/resources/versions
99-
git add generator/src/main/resources/versions
100-
git commit -m "Release Grails $TRAVIS_TAG"
101-
git push
102-
cd ..
65+
# git config --global credential.helper "store --file=~/.git-credentials"
66+
# echo "https://$GH_TOKEN:@github.com" > ~/.git-credentials
67+
68+
# git config --global user.name "$GIT_NAME"
69+
# git config --global user.email "$GIT_EMAIL"
70+
71+
# # Tag the Profile Repo
72+
# git clone https://${GH_TOKEN}@github.com/grails/grails-profile-repository.git
73+
# cd grails-profile-repository
74+
75+
# echo "grailsVersion=${TRAVIS_TAG:1}" > profiles/gradle.properties
76+
# git add profiles/gradle.properties
77+
# git commit -m "Release $TRAVIS_TAG profiles"
78+
# git tag $TRAVIS_TAG
79+
# git push --tags
80+
# git push
81+
# cd ..
82+
83+
# # Tag and release the docs
84+
# git clone https://${GH_TOKEN}@github.com/grails/grails-doc.git grails-doc
85+
# cd grails-doc
86+
87+
# echo "grails.version=${TRAVIS_TAG:1}" > gradle.properties
88+
# git add gradle.properties
89+
# git commit -m "Release $TRAVIS_TAG docs"
90+
# git tag $TRAVIS_TAG
91+
# git push --tags
92+
# git push
93+
# cd ..
94+
95+
# # Update the website
96+
# git clone https://${GH_TOKEN}@github.com/grails/grails-static-website.git
97+
# cd grails-static-website
98+
# echo -e "${TRAVIS_TAG:1}" >> generator/src/main/resources/versions
99+
# git add generator/src/main/resources/versions
100+
# git commit -m "Release Grails $TRAVIS_TAG"
101+
# git push
102+
# cd ..
103103

104104
# Rebuild Artifactory index
105105
curl -H "X-Api-Key:$ARTIFACTORY_API_KEY" -X POST "http://repo.grails.org/grails/api/maven?repos=libs-releases-local,plugins-releases-local,plugins3-releases-local,core&force=1"

0 commit comments

Comments
 (0)