diff --git a/.travis.yml b/.travis.yml index c94487a0..75872e0c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,26 +24,6 @@ install: brew update && brew install sdl2; fi - - if [ "${TRAVIS_OS_NAME}" == "linux" ] && [ "${TRAVIS_RUST_VERSION}" == "1.31.0" ]; then - (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; - fi script: - cargo test --verbose - - if [ "${TRAVIS_OS_NAME}" == "linux" ] && [ "${TRAVIS_RUST_VERSION}" == "1.31.0" ]; then - mdbook build; - fi - -deploy: - provider: pages - skip-cleanup: true - github-token: $GITHUB_TOKEN - local-dir: book - keep-history: false - fqdn: tetra.seventeencups.net - on: - branch: master - condition: $TRAVIS_OS_NAME == "linux" - condition: $TRAVIS_RUST_VERSION == "1.31.0" diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..23e9c50c --- /dev/null +++ b/netlify.toml @@ -0,0 +1,3 @@ +[build] +publish = "book" +command = "curl -sL https://github.com/rust-lang-nursery/mdBook/releases/download/v0.2.1/mdbook-v0.2.1-x86_64-unknown-linux-gnu.tar.gz | tar zxv && ./mdbook build"