Isolate the compiletest dependencies

This commit is contained in:
David Tolnay 2017-01-27 14:53:21 -08:00
parent 91f628727b
commit dd13fd3a34
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
5 changed files with 12 additions and 3 deletions

View File

@ -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 collections)
- (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)
env:

View 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" }

View File

View File

@ -6,7 +6,7 @@ fn run_mode(mode: &'static str) {
let mut config = compiletest::default_config();
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") {
config.filter = Some(name);
}

View File

@ -23,4 +23,4 @@ mod test_macros;
mod test_ser;
#[cfg(feature = "unstable-testing")]
mod compile_tests;
mod compiletest;