Skip to content
This repository was archived by the owner on Mar 21, 2022. It is now read-only.

Commit 6176734

Browse files
author
Christian Zirkelbach
committed
updated travisCI towards javadoc automation
1 parent 19a441c commit 6176734

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- stage: documentation
4040
name: "Publish documentation"
4141
if: (branch = master)
42-
script: ./gradlew alljavadoc && chmod +x .travis/javadoc-push.sh && .travis/javadoc-push.sh
42+
script: chmod +x .travis/javadoc-push.sh && .travis/javadoc-push.sh
4343

4444
before_script:
4545
- chmod +x .travis/docker_push.sh

.travis/javadoc-push.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
echo -e "Publishing javadoc...\n"
44

5-
cp -R docs $HOME/javadoc-latest
5+
./gradlew alljavadoc
6+
cp -R docs $HOME/docs
67

78
cd $HOME
89
git config --global user.email "travis@travis-ci.org"
@@ -11,7 +12,7 @@ git clone --quiet --branch=gh-pages https://$PersonalAccessToken@github.com/Expl
1112

1213
cd gh-pages
1314
git rm -rf *
14-
cp -Rf $HOME/javadoc-latest/* .
15+
cp -Rf $HOME/docs/* .
1516
git add -f .
1617
git commit -m "Latest Javadoc on successful Travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
1718
git push -fq origin gh-pages > /dev/null

0 commit comments

Comments
 (0)