Travis: move doc build step to script
#115
To ensure that doc build failures aren't silently ignored.
This commit is contained in:
parent
c4939ab9d7
commit
4eb22a3c20
|
@ -49,9 +49,7 @@ install:
|
|||
script:
|
||||
- make test
|
||||
# - make clippy
|
||||
|
||||
# Upload docs
|
||||
after_success:
|
||||
# upload docs
|
||||
- |
|
||||
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
|
||||
cargo doc --no-deps &&
|
||||
|
@ -62,6 +60,8 @@ after_success:
|
|||
./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" target/doc &&
|
||||
echo "Uploaded documentation"
|
||||
fi
|
||||
|
||||
after_success:
|
||||
- |
|
||||
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
|
||||
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
|
||||
|
|
Loading…
Reference in a new issue