summaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..5817b59
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,26 @@
+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.3" mdbook)
+ - cargo install-update -a
+
+script:
+ - mdbook build && mdbook test # In case of custom book path: mdbook build path/to/mybook && mdbook test path/to/mybook
+
+deploy:
+ provider: pages
+ skip-cleanup: true
+ github-token: $GITHUB_TOKEN
+ local-dir: book # In case of custom book path: path/to/mybook/book
+ keep-history: false
+ on:
+ branch: master
+