File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env sh
22set -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`
58ls
6- pwd
9+
710# Get to the Travis build directory, configure git and clone the repo
8- mvn javadoc:javadoc
911cd $HOME
10- currentAppVersion=` mvn -q -Dexec.executable=" echo" -Dexec.args=' ${project.version}' --non-recursive exec:exec`
1112git config --global user.email
" [email protected] " 1213git config --global user.name " travis-ci"
1314git 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
1617cd gh-pages
17- cp -Rf $HOME /target/site/apidocs ./javadoc-${currentAppVersion}
18+ cp -Rf ${workingDir} /target/site/apidocs ./javadoc-${currentAppVersion}
1819git add -f .
1920git commit -m " Lastest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages for app version ${currentAppVersion} "
2021git push -fq origin gh-pages > /dev/null
You can’t perform that action at this time.
0 commit comments