From 94023c5350c98afd9f22230ad10ade83b022cb7b Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Sun, 17 Dec 2017 17:04:10 -0600 Subject: [PATCH] add travis --- .travis.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..56f12fa --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +after_success: | + if [ -n "$GITHUB_API_KEY" ]; then + cd "$TRAVIS_BUILD_DIR" + # This generates a `web` directory containing the website. + make web + cd web + git init + git checkout -b gh-pages + git add . + git -c user.name='travis' -c user.email='travis' commit -m init + # Make sure to make the output quiet, or else the API token will leak! + # This works because the API key can replace your password. + git push -f -q https://:$GITHUB_API_KEY@github.com//-gh-pages gh-pages &2>/dev/null + cd "$TRAVIS_BUILD_DIR" + fi