personal-website/.travis.yml

15 lines
462 B
YAML
Raw Normal View History

2016-08-17 17:35:42 +00:00
language: python
python: "3.5"
# command to install dependencies
install: pip install 'Nikola[extras]'
# command to run tests
2017-04-07 16:15:56 +00:00
script: |
nikola build &&
if [ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ]; then
virtualenv -p python2.7 /tmp/venv &&
. /tmp/venv/bin/activate &&
pip install ghp-import &&
ghp-import -n output &&
git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages >/dev/null 2>&1
fi