Skip to content

Commit 7804f10

Browse files
committed
Test on rust 1.0.0, nightly, and beta
1 parent 996fce6 commit 7804f10

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.travis.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
language: rust
2+
rust:
3+
- 1.0.0
4+
- beta
5+
- nightly
26
sudo: false
37
script:
48
- cargo build --verbose
59
- cargo test --verbose
6-
- cargo test --verbose --features pattern
10+
- |
11+
[ $TRAVIS_RUST_VERSION != nightly ] || cargo test --verbose --features pattern
712
- cargo doc
813
- cargo bench --verbose
9-
- cargo test --verbose --manifest-path=regex_macros/Cargo.toml
10-
- cargo bench --verbose --manifest-path=regex_macros/Cargo.toml
14+
- |
15+
[ $TRAVIS_RUST_VERSION != nightly ] || cargo test --manifest-path=regex_macros/Cargo.toml
16+
- |
17+
[ $TRAVIS_RUST_VERSION != nightly ] || cargo bench --manifest-path=regex_macros/Cargo.toml
1118
after_success: |
1219
[ $TRAVIS_BRANCH = master ] &&
1320
[ $TRAVIS_PULL_REQUEST = false ] &&
21+
[ $TRAVIS_RUST_VERSION = nightly ] &&
1422
echo '<meta http-equiv=refresh content=0;url=regex/index.html>' > target/doc/index.html &&
1523
pip install ghp-import --user $USER &&
1624
$HOME/.local/bin/ghp-import -n target/doc &&

0 commit comments

Comments
 (0)