diff --git a/.travis.yml b/.travis.yml
index 68e835d..5d1ea3a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,16 @@
language: node_js
node_js:
- "8"
-before_script:
+
+install:
- npm install
+
script:
- npm test
- - bash script/docs_auto_deploy.sh
+
+deploy:
+ skip_cleanup: true
+ provider: script
+ script: bash script/docs_auto_deploy.sh
+ on:
+ branch: master
diff --git a/index.js b/index.js
index 68a56cd..00873f3 100644
--- a/index.js
+++ b/index.js
@@ -1,5 +1,6 @@
#!/usr/bin/env node
/**
+*
This module is the launch point for the autolabcli application
* Module imports functions from other modules and calls them when user inputs the required input
* @module index
*/
diff --git a/script/docs_auto_deploy.sh b/script/docs_auto_deploy.sh
index 8ff63fc..f6a26d7 100644
--- a/script/docs_auto_deploy.sh
+++ b/script/docs_auto_deploy.sh
@@ -40,9 +40,9 @@ git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
cd ..
# Clean out existing contents
-rm -rf docs/**/* || exit 0
+rm -rf docs/* || exit 0
-# create the sphinx documents
+# create the documents using JSDoc
createDocs
# Now let's go have some fun with the cloned repo
@@ -50,18 +50,12 @@ cd docs
git config user.name "Travis CI"
git config user.email "$COMMIT_AUTHOR_EMAIL"
-# If there are no changes to the compiled out (e.g. this is a README update) then just bail.
-if [ -z $(git diff --exit-code > /dev/null) ]; then
- echo "No changes to the documentation on this push; exiting."
- exit 0
-fi
-
# Commit the "changes", i.e. the new version.
# The delta will show diffs between new and old versions.
git add .
git commit -m "[Travis Commit] Automated Deploy to gh-pages | Caused by ${SHA}
refer auto_commit_script: https://github.com/AutolabJS/autolabcli/blob/$SOURCE_BRANCH/script/doc_auto_deploy.sh
-"
+" || exit 0 # fail silently if there is nothing to commit
#go to parent directory and perform SSH configuration
cd ..