We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 831b3ff + 11b19a4 commit 767fc97Copy full SHA for 767fc97
.travis.yml
@@ -0,0 +1,17 @@
1
+language: rust
2
+
3
+cache: pip
4
5
+install:
6
+ - bash ci/install.sh
7
+ - source ~/.cargo/env || true
8
9
+script:
10
+ - true
11
12
+after_success:
13
+ - bash ci/github_pages.sh
14
15
+notifications:
16
+ email:
17
+ on_success: never
ci/github_pages.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+set -ex
+BOOK_DIR=book
+# Only upload the built book to github pages if it's a commit to master
+if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false ]; then
+ mdbook build
+ ghp-import $BOOK_DIR
+fi
ci/install.sh
@@ -0,0 +1,6 @@
+if command -v ghp-import >/dev/null 2>&1; then
+ pip install ghp-import
0 commit comments