From 571de7c8d4f5427cb351ecc52a4f6921657d659c Mon Sep 17 00:00:00 2001 From: Alec Embke Date: Fri, 24 Mar 2017 15:45:59 -0700 Subject: [PATCH] no sudo --- .travis.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index bddf68b..90e766d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,10 @@ notifications: on_success: never on_failure: never sudo: false +branches: + only: + - master + - develop node_js: - '7' - '6' @@ -20,11 +24,13 @@ after_script: - | [ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ] && + echo "Building docs for GH pages..." && grunt docs && echo "" > doc/index.html && - sudo pip install ghp-import && + pip install ghp-import && ghp-import -n doc && - git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages + git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages && + echo "Finished building docs for GH pages." env: global: - CXX=g++-4.8