Removed ghp-import and run mdbook build unconditionally
This commit is contained in:
parent
3f34f0c94e
commit
a9a76280f4
|
|
@ -1,14 +1,11 @@
|
||||||
language: rust
|
language: rust
|
||||||
cache:
|
cache:
|
||||||
- pip
|
|
||||||
- cargo
|
- cargo
|
||||||
install:
|
install:
|
||||||
- source ~/.cargo/env || true
|
- source ~/.cargo/env || true
|
||||||
- bash ci/install.sh
|
- bash ci/install.sh
|
||||||
script:
|
script:
|
||||||
- true
|
- RUST_LOG=debug mdbook build
|
||||||
after_success:
|
|
||||||
- bash ci/github_pages.sh
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
on_success: never
|
on_success: never
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -15,10 +15,3 @@ function cargo_install() {
|
||||||
|
|
||||||
cargo_install mdbook 0.1.1
|
cargo_install mdbook 0.1.1
|
||||||
cargo_install mdbook-linkcheck 0.1.0
|
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
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue