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