spearhead-issue-response/.travis.yml

21 lines
568 B
YAML
Raw Permalink Normal View History

2017-01-13 20:17:41 +02:00
language: python
python:
2017-01-13 20:58:22 +02:00
- 2.7
2017-01-13 20:17:41 +02:00
cache: pip
2017-01-13 21:25:03 +02:00
before_install:
- git config credential.helper "store --file=.git/credentials"; echo "https://${GITHUB_API_KEY}:@github.com" > .git/credentials 2>/dev/null
- git config --global user.email "mp@sphs.ro"
- git config --global user.name "Marius Pana"
2017-01-13 20:17:41 +02:00
install:
2017-01-13 20:58:22 +02:00
- pip install mkdocs
- pip install mkdocs-material==0.2.4
2017-01-13 20:17:41 +02:00
script:
2017-01-13 20:58:22 +02:00
- mkdocs build --clean
2017-01-13 21:19:39 +02:00
- git pull
2017-01-13 20:58:22 +02:00
after_success: |
2017-01-13 20:17:41 +02:00
if [ -n "$GITHUB_API_KEY" ]; then
cd "$TRAVIS_BUILD_DIR"
2017-01-13 21:26:44 +02:00
git pull
mkdocs gh-deploy --force
2017-01-13 20:58:22 +02:00
cd "$TRAVIS_BUILD_DIR"
2017-01-13 21:25:03 +02:00
fi