From 7a152248aa7269f5aaaa55d021c42dc453ad967c Mon Sep 17 00:00:00 2001 From: Knight Date: Fri, 29 Jul 2016 20:30:56 +0800 Subject: [PATCH] CI: add nightly features --- .travis.yml | 15 ++++++++++++--- appveyor.yml | 2 +- build.rs | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 15b725af1..4541441fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,14 +2,23 @@ language: rust matrix: include: - rust: stable + os: linux + env: FEATURES='' + - rust: stable + os: osx env: FEATURES='' - rust: beta + os: linux + env: FEATURES='' + - rust: beta + os: osx env: FEATURES='' - rust: nightly + os: linux + env: FEATURES=nightly + - rust: nightly + os: osx env: FEATURES=nightly -os: - - linux - - osx cache: directories: - $HOME/.cargo diff --git a/appveyor.yml b/appveyor.yml index dd7fea6a4..c52981d5a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -33,4 +33,4 @@ artifacts: build: false test_script: - - cargo test --no-fail-fast --features generic --no-default-features + - cargo test --no-fail-fast --features nightly generic --no-default-features diff --git a/build.rs b/build.rs index fe5c3e979..e82d9dc26 100644 --- a/build.rs +++ b/build.rs @@ -12,7 +12,7 @@ pub fn main() { if val == "1" && key.starts_with(feature_prefix) { let krate = key[feature_prefix.len()..].to_lowercase(); match krate.as_ref() { - "default" | "unix" | "generic" | "test_unimplemented" => continue, + "default" | "unix" | "generic" | "nightly" | "test_unimplemented" => continue, _ => {}, } crates.push(krate.to_string());