From e2f5e388e63fea776721202f46ededda7dc17d46 Mon Sep 17 00:00:00 2001 From: Tushar Makkar Date: Wed, 2 Nov 2016 17:10:38 +0530 Subject: [PATCH] Added update_documentation.sh script for updating gh-pages --- .travis.yml | 3 ++- update_documentation.sh | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 update_documentation.sh diff --git a/.travis.yml b/.travis.yml index 725c58d..470558f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,4 +16,5 @@ install: # command to run tests script: nosetests --with-coverage --cover-package=voluptuous after_success: - - coveralls \ No newline at end of file + - coveralls + - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./update_documentation.sh; fi' \ No newline at end of file diff --git a/update_documentation.sh b/update_documentation.sh new file mode 100644 index 0000000..d27b5b8 --- /dev/null +++ b/update_documentation.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +git checkout gh-pages +git merge master +pip install -r requirements.txt +sphinx-apidoc -o docs -f voluptuous \ No newline at end of file