Skip to content

Commit 6bd5ace

Browse files
committed
MAINT: Run regular tests in travis. Run compiletest only with a crate feature
1 parent f9ac981 commit 6bd5ace

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

.travis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,27 @@ sudo: false
33

44
# run builds for all the trains (and more)
55
rust:
6+
- 1.27.0
67
- stable
8+
- beta
79
- nightly
10+
env:
11+
- FEATURES='test_compiletest'
812
branches:
913
only:
1014
- master
1115

1216
# the main build
1317
script:
1418
- |
15-
cargo build &&
19+
cargo build -v --features=$FEATURES &&
20+
cargo test -v --features=$FEATURES &&
1621
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
17-
cargo test &&
18-
cargo bench
22+
cargo bench -v --no-run
1923
else
2024
true
2125
fi &&
22-
cargo doc
26+
cargo doc -v
2327
2428
env:
2529
global:

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ categories = ["no-std", "rust-patterns"]
1515
[lib]
1616

1717
[dev-dependencies]
18-
compiletest_rs = "0.3.3"
18+
compiletest_rs = "0.3.17"
1919
rand = "0.3"
2020
quickcheck = { version = "0.5.0", default-features = false }
2121

@@ -25,6 +25,8 @@ default = ["use_std"]
2525
# Turn off std to use `no_std`
2626
use_std = []
2727

28+
test_compiletest = []
29+
2830
[profile.bench]
2931
#debug = true
3032

tests/compiletest.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature="test_compiletest")]
2+
13
extern crate compiletest_rs as compiletest;
24

35
use compiletest::Config;

0 commit comments

Comments
 (0)