File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
2- refs/heads/master: 63d01ce437641850633c63bdcbf9720489413698
2+ refs/heads/master: d2f41285f09c2f2b1ed85eb323f378fe530de3bd
33refs/heads/travis: f6a7282f13bbc41cf256f07b6f75ad1425aebd75
44refs/heads/gh-pages: 2cc964c1ecc5d653c449b81ee9e924182b221d18
Original file line number Diff line number Diff line change @@ -8,17 +8,18 @@ echo "Travis pull request: " ${TRAVIS_PULL_REQUEST}
88echo " Travis JDK version: " ${TRAVIS_JDK_VERSION}
99if [ " ${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
You can’t perform that action at this time.
0 commit comments