Merge branch 'beta-travis'
This commit is contained in:
12
.travis.sh
Executable file
12
.travis.sh
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$BENCH" != "" ]
|
||||||
|
then
|
||||||
|
echo "cargo bench $FEATURES"
|
||||||
|
cargo bench $FEATURES
|
||||||
|
else
|
||||||
|
echo "cargo build $FEATURES"
|
||||||
|
cargo build $FEATURES
|
||||||
|
echo "cargo test $FEATURES"
|
||||||
|
cargo test $FEATURES
|
||||||
|
fi
|
||||||
18
.travis.yml
18
.travis.yml
@@ -1,21 +1,27 @@
|
|||||||
language: rust
|
language: rust
|
||||||
|
matrix:
|
||||||
|
fast_finish: true
|
||||||
|
include:
|
||||||
|
- rust: nightly
|
||||||
|
env: FEATURES="--features nightly"
|
||||||
|
- rust: nightly
|
||||||
|
env: FEATURES="--features nightly" BENCH=true
|
||||||
|
- rust: beta
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- target
|
- target
|
||||||
|
|
||||||
script:
|
script: ./.travis.sh
|
||||||
- cargo build --features nightly
|
|
||||||
- cargo test --features nightly
|
|
||||||
- cargo bench --features nightly
|
|
||||||
|
|
||||||
after_success: |
|
after_success: |
|
||||||
[ $TRAVIS_BRANCH = master ] &&
|
[ $TRAVIS_BRANCH = master ] &&
|
||||||
[ $TRAVIS_PULL_REQUEST = false ] &&
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
||||||
cargo doc --features nightly &&
|
[ $TRAVIS_RUST_VERSION = beta ] &&
|
||||||
|
cargo doc &&
|
||||||
echo '<meta http-equiv=refresh content=0;url=hyper/index.html>' > target/doc/index.html &&
|
echo '<meta http-equiv=refresh content=0;url=hyper/index.html>' > target/doc/index.html &&
|
||||||
git shortlog -s -n | cut -c 8- > target/doc/humans.txt &&
|
|
||||||
pip install --user ghp-import &&
|
pip install --user ghp-import &&
|
||||||
/home/travis/.local/bin/ghp-import -n target/doc &&
|
/home/travis/.local/bin/ghp-import -n target/doc &&
|
||||||
git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|
git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|
||||||
|
|||||||
Reference in New Issue
Block a user