forked from beryx/text-io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtravis-build.sh
executable file
·24 lines (19 loc) · 958 Bytes
/
travis-build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
set -ev
./gradlew --no-daemon -i -s build javadoc asciidoc
if [ "${TRAVIS_PULL_REQUEST}" == "false" -a "${TRAVIS_BRANCH}" == "master" ]; then
if [ "`git ls-remote origin gh-pages`" == "" ]; then
echo Start gitPublishPush with ghPageType=init
./gradlew --no-daemon -i -s gitPublishPush --rerun-tasks -PghPageType=init
echo Finished gitPublishPush with ghPageType=init
fi
echo Start gitPublishPush with ghPageType=latest
./gradlew --no-daemon -i -s gitPublishPush --rerun-tasks -PghPageType=latest
echo Finished gitPublishPush with ghPageType=version
echo Start gitPublishPush with ghPageType=version
./gradlew --no-daemon -i -s gitPublishPush --rerun-tasks -PghPageType=version
echo Finished gitPublishPush with ghPageType=version
echo Start updating releases.md
./gradlew --no-daemon -i -s update-release-list gitPublishPush --rerun-tasks -PghPageType=list
echo Finished updating releases.md
fi