Skip to content

Commit 362044c

Browse files
committed
Merge branch 'beta-travis'
2 parents a84a270 + f01cecb commit 362044c

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

.travis.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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

.travis.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
language: 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+
211
sudo: false
312

413
cache:
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

1319
after_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

0 commit comments

Comments
 (0)