Add Travis configuration

This commit is contained in:
Vicky Steeves 2016-08-17 13:35:42 -04:00
parent 4aa29bb395
commit 2d871bef7c
1 changed files with 12 additions and 0 deletions

12
.travis.yml Normal file
View File

@ -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