File tree Expand file tree Collapse file tree 2 files changed +24
-6
lines changed Expand file tree Collapse file tree 2 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ if [ " $BENCH " != " " ]
4+ then
5+ echo " cargo bench $FEATURES "
6+ cargo bench $FEATURES
7+ else
8+ echo " cargo build $FEATURES "
9+ cargo build $FEATURES
10+ echo " cargo test $FEATURES "
11+ cargo test $FEATURES
12+ fi
Original file line number Diff line number Diff line change 11language : rust
2+ matrix :
3+ fast_finish : true
4+ include :
5+ - rust : nightly
6+ env : FEATURES="--features nightly"
7+ - rust : nightly
8+ env : FEATURES="--features nightly" BENCH=true
9+ - rust : beta
10+
211sudo : false
312
413cache :
514 directories :
615 - target
716
8- script :
9- - cargo build --features nightly
10- - cargo test --features nightly
11- - cargo bench --features nightly
17+ script : ./.travis.sh
1218
1319after_success : |
1420 [ $TRAVIS_BRANCH = master ] &&
1521 [ $TRAVIS_PULL_REQUEST = false ] &&
16- cargo doc --features nightly &&
22+ [ $TRAVIS_RUST_VERSION = beta ] &&
23+ cargo doc &&
1724 echo '<meta http-equiv=refresh content=0;url=hyper/index.html>' > target/doc/index.html &&
18- git shortlog -s -n | cut -c 8- > target/doc/humans.txt &&
1925 pip install --user ghp-import &&
2026 /home/travis/.local/bin/ghp-import -n target/doc &&
2127 git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
You can’t perform that action at this time.
0 commit comments