chore(travis): don't build docs with deps, or run full benchmarks
This commit is contained in:
12
.travis.sh
12
.travis.sh
@@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$BENCH" != "" ]
|
||||
then
|
||||
echo "cargo bench $FEATURES"
|
||||
cargo bench --verbose $FEATURES
|
||||
else
|
||||
echo "cargo build $FEATURES"
|
||||
cargo build --verbose $FEATURES
|
||||
echo "cargo test $FEATURES"
|
||||
cargo test --verbose $FEATURES
|
||||
fi
|
||||
@@ -5,9 +5,6 @@ matrix:
|
||||
- rust: nightly
|
||||
env: FEATURES="--features nightly"
|
||||
sudo: false
|
||||
- rust: nightly
|
||||
env: FEATURES="--features nightly" BENCH=true
|
||||
sudo: false
|
||||
- rust: beta
|
||||
sudo: false
|
||||
- rust: stable
|
||||
@@ -17,7 +14,9 @@ cache:
|
||||
directories:
|
||||
- target
|
||||
|
||||
script: ./.travis.sh
|
||||
script:
|
||||
- cargo build --verbose $FEATURES
|
||||
- cargo test --verbose $FEATURES
|
||||
|
||||
after_success: |
|
||||
[ $TRAVIS_RUST_VERSION = stable ] &&
|
||||
@@ -29,7 +28,7 @@ after_success: |
|
||||
[ $TRAVIS_BRANCH = master ] &&
|
||||
[ $TRAVIS_PULL_REQUEST = false ] &&
|
||||
[ $TRAVIS_RUST_VERSION = stable ] &&
|
||||
cargo doc &&
|
||||
cargo doc --no-deps &&
|
||||
echo '<meta http-equiv=refresh content=0;url=hyper/index.html>' > target/doc/index.html &&
|
||||
pip install --user ghp-import &&
|
||||
/home/travis/.local/bin/ghp-import -n target/doc &&
|
||||
|
||||
Reference in New Issue
Block a user