diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..21c9696 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +language: python + +python: + - 3.4 + +install: + - pip install mkdocs + - python setup.py install + +script: + - mkdocs build + +after_success: | + if [ -n "$GITHUB_API_KEY" ]; then + cd "$TRAVIS_BUILD_DIR" + cd site + git init + git add . + git -c user.name='travis' -c user.email='travis' commit -m "update" + git push -f -q https://Meow-J:$GITHUB_API_KEY@github.com/LearnOpenGL-CN/learnopengl-cn.github.io master &2>/dev/null + cd "$TRAVIS_BUILD_DIR" + fi \ No newline at end of file