-
Notifications
You must be signed in to change notification settings - Fork 539
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
synch Travis build changes from master branch
- Loading branch information
Showing
8 changed files
with
97 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
script: ./travis-build.sh | ||
sudo: false | ||
jdk: | ||
- openjdk7 | ||
env: | ||
global: | ||
- GRADLE_OPTS="-server -Xmx1024M -Xms768M -XX:PermSize=256m -XX:MaxPermSize=512m" | ||
- GIT_NAME="Graeme Rocher" | ||
- GIT_EMAIL="[email protected]" | ||
- secure: SdGzn2ItEkM0UGzByv/0yXLO7g9iJYmrSIgQ3a1yZXvOerQOLuOwwTZIJ4LUBJpJcQRhiAff1HidN/6fAGAd4mwgoQcX1kKdrRHIl0oG7V7DC9YRytPko/gasQ6aPoR3GBBpLqx8hIjGYbVKIrPWgMSRRA7DSvbzI5XlOgAX1Dg= | ||
- secure: R9aL92lh09LniCTbiZuuikiWHXL4ik/DDAKe7NLanqpI126vs5Y9zd56JifgN8Mp7sEbwlaM4RzFXpgkdl57FZqdDzC04ljeqy9Z4CmGthUCF2o2exV98HFWxrL6J18OH5zVSBtZJN0ANcgdJ3/+vMuk2wyS61qhl36uiUM66tM= | ||
cache: | ||
directories: | ||
- $HOME/.gradle/wrapper | ||
- $HOME/.gradle/caches | ||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: OXqyhH6/rK9rmiApnm+8smg/+rjdM3T28/4ZUzbdibYZNSagVAMniDgndZIwt198jDvAPxf9jadN1G3OD5BLkW0wUWvAfYAtxAwOe6dzgcsMavdTxoBJnjXBc4XqFXSDhWTO4cd4vQ5Wx6cyvbUY5xgyREpvEP7oRUgQ0RJo9q8= | ||
file: build/distributions/grails-docs-${TRAVIS_TAG:1}.zip | ||
skip_cleanup: true | ||
on: | ||
repo: grails/grails-doc | ||
tags: true | ||
all_branches: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
grails.version=2.4.5 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Wed May 07 15:07:35 EEST 2014 | ||
#Thu Feb 19 15:21:28 CST 2015 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-1.12-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
./gradlew -Ddisable.groovydocs=true -Dgrails.home=../grails-master docs | ||
./gradlew -Ddisable.groovydocs=true -Dgrails.home=../dev docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
git config --global user.name "$GIT_NAME" | ||
git config --global user.email "$GIT_EMAIL" | ||
git config --global credential.helper "store --file=~/.git-credentials" | ||
echo "https://$GH_TOKEN:@github.com" > ~/.git-credentials | ||
|
||
export GRADLE_OPTS="-Xmx2048m -Xms256m -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError" | ||
|
||
./gradlew assemble --info --stacktrace | ||
|
||
if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then | ||
|
||
# If there is a tag present then this becomes the latest | ||
if [[ -n $TRAVIS_TAG ]]; then | ||
git clone https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git -b gh-pages gh-pages --single-branch > /dev/null | ||
cd gh-pages | ||
|
||
version="$TRAVIS_TAG" | ||
version=${version:1} | ||
zipName="grails-docs-$version" | ||
export RELEASE_FILE="${zipName}.zip" | ||
|
||
milestone=${version:5} | ||
if [[ -n $milestone ]]; then | ||
git rm -rf latest/ | ||
mkdir -p latest | ||
cp -r ../build/docs/. ./latest/ | ||
git add latest/* | ||
fi | ||
|
||
majorVersion=${version:0:4} | ||
majorVersion="${majorVersion}x" | ||
|
||
mkdir -p "$version" | ||
cp -r ../build/docs/. "./$version/" | ||
git add "$version/*" | ||
|
||
mkdir -p "$majorVersion" | ||
cp -r ../build/docs/. "./$majorVersion/" | ||
git add "$majorVersion/*" | ||
git commit -a -m "Updating docs for Travis build: https://travis-ci.org/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID" | ||
git push origin HEAD | ||
cd .. | ||
rm -rf gh-pages | ||
|
||
fi | ||
|
||
fi |