Removed ghp-import and run mdbook build unconditionally

This commit is contained in:
Michael Bryan 2018-01-27 14:41:40 +08:00 committed by Niko Matsakis
parent 3f34f0c94e
commit a9a76280f4
3 changed files with 1 additions and 22 deletions

View File

@ -1,14 +1,11 @@
language: rust
cache:
- pip
- cargo
install:
- source ~/.cargo/env || true
- bash ci/install.sh
script:
- true
after_success:
- bash ci/github_pages.sh
- RUST_LOG=debug mdbook build
notifications:
email:
on_success: never

View File

@ -1,11 +0,0 @@
#!/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
else
echo Skipping 'mdbook build' because this is not master or this is just a PR.
fi

View File

@ -15,10 +15,3 @@ function cargo_install() {
cargo_install mdbook 0.1.1
cargo_install mdbook-linkcheck 0.1.0
if command -v ghp-import >/dev/null 2>&1; then
echo "ghp-import already installed at $(which ghp-import)"
else
echo "installing ghp-import"
pip install --user ghp-import
fi