Skip to content

Commit c3a30b5

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 565 b: refs/heads/master c: d2f4128 h: refs/heads/master i: 563: 51dddc4 v: v3
1 parent 7643d81 commit c3a30b5

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
2-
refs/heads/master: 63d01ce437641850633c63bdcbf9720489413698
2+
refs/heads/master: d2f41285f09c2f2b1ed85eb323f378fe530de3bd
33
refs/heads/travis: f6a7282f13bbc41cf256f07b6f75ad1425aebd75
44
refs/heads/gh-pages: 2cc964c1ecc5d653c449b81ee9e924182b221d18

trunk/utilities/after_success.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ echo "Travis pull request: " ${TRAVIS_PULL_REQUEST}
88
echo "Travis JDK version: " ${TRAVIS_JDK_VERSION}
99
if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" -a "${TRAVIS_BRANCH}" == "master" -a "${TRAVIS_PULL_REQUEST}" == "false" ]; then
1010
mvn cobertura:cobertura coveralls:report
11-
mvn site-deploy -DskipTests=true --settings=target/travis/settings.xml
1211
mvn deploy -DskipTests=true -Dgpg.skip=true --settings target/travis/settings.xml
1312

14-
# Update "site/latest/index.html" to redirect to the newly generated website (if not a SNAPSHOT)
15-
git config --global user.name "travis-ci"
16-
git config --global user.email "[email protected]"
17-
git clone https://github.com/GoogleCloudPlatform/gcloud-java.git tmp_gh-pages
18-
cd tmp_gh-pages
13+
# Deploy site if not a SNAPSHOT
1914
SITE_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev '(^\[|Download\w+:)')
2015
if [ "${SITE_VERSION##*-}" != "SNAPSHOT" ]; then
21-
git checkout gh-pages
16+
mvn site-deploy -DskipTests=true --settings=target/travis/settings.xml
17+
18+
# Update "latest" webpage
19+
git config --global user.name "travis-ci"
20+
git config --global user.email "[email protected]"
21+
git clone --branch gh-pages --single-branch https://github.com/GoogleCloudPlatform/gcloud-java/ tmp_gh-pages
22+
cd tmp_gh-pages
2223
mkdir -p site/latest/
2324
touch site/latest/index.html
2425
echo "<html><head><meta http-equiv=\"refresh\" content=\"0; URL='http://GoogleCloudPlatform.github.io/gcloud-java/site/${SITE_VERSION}/index.html'\" /></head><body></body></html>" > site/latest/index.html

0 commit comments

Comments
 (0)