CI: add nightly features

This commit is contained in:
Knight 2016-07-29 20:30:56 +08:00
parent 68631e555f
commit 7a152248aa
3 changed files with 14 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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());