From 9bfd6f185499b2c493fd07be9e4f7284fb9ca7d6 Mon Sep 17 00:00:00 2001 From: Lokathor Date: Tue, 13 Nov 2018 11:08:20 -0700 Subject: [PATCH] attemp1 to make TravisCI help us out If this works properly it should automatically rebuild and deploy the `docs/` directory upon each commit to master (because we'll probably forget some of the time). --- .travis.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3af40bc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: rust +sudo: false + +cache: + - cargo + +rust: + - stable + +before_script: + - (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update) + - (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.1" mdbook) + - cargo install-update -a + +script: + - cd book && mdbook build && mdbook test + +deploy: + provider: pages + skip-cleanup: true + github-token: $GITHUB_TOKEN + local-dir: docs + keep-history: false + on: + branch: master