Skip to content

Commit d8c698a

Browse files
committed
Have Travis-CI also test on stable Rust
1 parent eeaca13 commit d8c698a

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ branches:
44
- servo
55

66
language: rust
7-
rust: nightly
7+
rust:
8+
- nightly
9+
- beta
10+
- stable
811
script: scripts/travis-build.sh
912
after_success: curl https://raw.githubusercontent.com/kmcallister/travis-doc-upload/master/travis-doc-upload.sh | sh
1013

scripts/travis-build.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,20 @@
1010

1111
set -ex
1212

13+
# Test without unstable first, to make sure src/tree_builder/rules.expanded.rs is up-to-date.
1314
cargo test --no-run
1415
cargo test | ./scripts/shrink-test-output.py
1516
r=${PIPESTATUS[0]}
1617
if [ $r -ne 0 ]; then exit $r; fi
1718

18-
cargo test --manifest-path capi/Cargo.toml
19+
if [ $TRAVIS_RUST_VERSION = nightly ]
20+
then
21+
cargo test --no-run --features unstable
22+
cargo test --features unstable | ./scripts/shrink-test-output.py
23+
r=${PIPESTATUS[0]}
24+
if [ $r -ne 0 ]; then exit $r; fi
25+
26+
cargo test --manifest-path capi/Cargo.toml
27+
fi
1928

2029
cargo doc

0 commit comments

Comments
 (0)