-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uncommented instructions for Travis to push new API docs to gh-pages
- Loading branch information
Showing
1 changed file
with
15 additions
and
15 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 |
---|---|---|
|
@@ -4,18 +4,18 @@ echo "Generating documentation..." | |
./node_modules/.bin/jsdoc -c .jsdoc.json | ||
echo "New documentation is in docs" | ||
|
||
# | ||
#echo "Hello, Travis! You there?" | ||
#if [[ -z "${TRAVIS}" ]]; then | ||
# echo "No Travis here. I'm done here." | ||
# exit; | ||
#else | ||
# echo "Travis: Yup, here." | ||
# cd docs || exit | ||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "Travis-CI" | ||
# git init | ||
# git add . | ||
# git commit -m "Latest docs Travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages" | ||
# git push -v --force "https://${GH_TOKEN}@github.com/APTrust/dart.git" master:gh-pages | ||
#fi | ||
|
||
echo "Hello, Travis! You there?" | ||
if [[ -z "${TRAVIS}" ]]; then | ||
echo "No Travis here. I'm done here." | ||
exit; | ||
else | ||
echo "Travis: Yup, here." | ||
cd docs || exit | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Travis-CI" | ||
git init | ||
git add . | ||
git commit -m "Latest docs Travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages" | ||
git push -v --force "https://${GH_TOKEN}@github.com/APTrust/dart.git" master:gh-pages | ||
fi |