From 2d871bef7cdddd330c4af1d2fd84699759f926ac Mon Sep 17 00:00:00 2001 From: Vicky Steeves Date: Wed, 17 Aug 2016 13:35:42 -0400 Subject: [PATCH] Add Travis configuration --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3f8a1c9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: python +python: "3.5" +# command to install dependencies +install: pip install 'Nikola[extras]' +# command to run tests +script: nikola build +after_success: | + [ $TRAVIS_BRANCH = master ] && + [ $TRAVIS_PULL_REQUEST = false ] && + pip install ghp-import --user $USER && + $HOME/.local/bin/ghp-import -n output + git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages