Isolate the compiletest dependencies
This commit is contained in:
parent
91f628727b
commit
dd13fd3a34
@ -20,7 +20,7 @@ script:
|
|||||||
- (cd serde && travis-cargo --only nightly build -- --no-default-features --features alloc)
|
- (cd serde && travis-cargo --only nightly build -- --no-default-features --features alloc)
|
||||||
- (cd serde && travis-cargo --only nightly build -- --no-default-features --features collections)
|
- (cd serde && travis-cargo --only nightly build -- --no-default-features --features collections)
|
||||||
- (cd test_suite && travis-cargo --only beta test)
|
- (cd test_suite && travis-cargo --only beta test)
|
||||||
- (cd test_suite && travis-cargo --only nightly test -- --features unstable-testing)
|
- (cd test_suite/deps && travis-cargo --only nightly build && cd .. && travis-cargo --only nightly test -- --features unstable-testing)
|
||||||
- (cd test_suite/no_std && travis-cargo --only nightly build)
|
- (cd test_suite/no_std && travis-cargo --only nightly build)
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
9
test_suite/deps/Cargo.toml
Normal file
9
test_suite/deps/Cargo.toml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[package]
|
||||||
|
name = "serde_test_suite_deps"
|
||||||
|
version = "0.0.0"
|
||||||
|
authors = ["David Tolnay <dtolnay@gmail.com>"]
|
||||||
|
publish = false
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
serde = { path = "../../serde" }
|
||||||
|
serde_derive = { path = "../../serde_derive" }
|
0
test_suite/deps/src/lib.rs
Normal file
0
test_suite/deps/src/lib.rs
Normal file
@ -6,7 +6,7 @@ fn run_mode(mode: &'static str) {
|
|||||||
let mut config = compiletest::default_config();
|
let mut config = compiletest::default_config();
|
||||||
|
|
||||||
config.mode = mode.parse().expect("invalid mode");
|
config.mode = mode.parse().expect("invalid mode");
|
||||||
config.target_rustcflags = Some("-L target/debug/ -L target/debug/deps/".to_owned());
|
config.target_rustcflags = Some("-L deps/target/debug/deps".to_owned());
|
||||||
if let Ok(name) = env::var("TESTNAME") {
|
if let Ok(name) = env::var("TESTNAME") {
|
||||||
config.filter = Some(name);
|
config.filter = Some(name);
|
||||||
}
|
}
|
@ -23,4 +23,4 @@ mod test_macros;
|
|||||||
mod test_ser;
|
mod test_ser;
|
||||||
|
|
||||||
#[cfg(feature = "unstable-testing")]
|
#[cfg(feature = "unstable-testing")]
|
||||||
mod compile_tests;
|
mod compiletest;
|
||||||
|
Loading…
Reference in New Issue
Block a user