Created a couple basic CI scripts
This commit is contained in:
parent
13b379d3d3
commit
6a76becdbf
3 changed files with 33 additions and 0 deletions
17
src/doc/rustc-dev-guide/.travis.yml
Normal file
17
src/doc/rustc-dev-guide/.travis.yml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
language: rust
|
||||
|
||||
cache: pip
|
||||
|
||||
install:
|
||||
- bash ci/install.sh
|
||||
- source ~/.cargo/env || true
|
||||
|
||||
script:
|
||||
- true
|
||||
|
||||
after_success:
|
||||
- bash ci/github_pages.sh
|
||||
|
||||
notifications:
|
||||
email:
|
||||
on_success: never
|
||||
10
src/doc/rustc-dev-guide/ci/github_pages.sh
Normal file
10
src/doc/rustc-dev-guide/ci/github_pages.sh
Normal file
|
|
@ -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
|
||||
6
src/doc/rustc-dev-guide/ci/install.sh
Normal file
6
src/doc/rustc-dev-guide/ci/install.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
if command -v ghp-import >/dev/null 2>&1; then
|
||||
pip install ghp-import
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue