Skip to content

Commit ac1d1c0

Browse files
committed
Adding some more debug to the bash script for issue #6
1 parent f3409d6 commit ac1d1c0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
#! /usr/bin/env sh
22
set -ev
3+
workingDir=`pwd`
34

4-
echo "HELLO WORLD"
5+
# Generate javadocs and get current app version
6+
mvn javadoc:javadoc
7+
currentAppVersion=`mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive exec:exec`
58
ls
6-
pwd
9+
710
# Get to the Travis build directory, configure git and clone the repo
8-
mvn javadoc:javadoc
911
cd $HOME
10-
currentAppVersion=`mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive exec:exec`
1112
git config --global user.email "[email protected]"
1213
git config --global user.name "travis-ci"
1314
git clone --quiet --branch=gh-pages https://${GITHUB_JAVADOCS_PUBLISH_TOKEN}@github.com/digital-delivery-academy/selenium-pom-framework gh-pages > /dev/null
1415

1516
# Commit and Push the Changes
1617
cd gh-pages
17-
cp -Rf $HOME/target/site/apidocs ./javadoc-${currentAppVersion}
18+
cp -Rf ${workingDir}/target/site/apidocs ./javadoc-${currentAppVersion}
1819
git add -f .
1920
git commit -m "Lastest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages for app version ${currentAppVersion}"
2021
git push -fq origin gh-pages > /dev/null

0 commit comments

Comments
 (0)