1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

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: matrix:
include: include:
- rust: stable - rust: stable
os: linux
env: FEATURES=''
- rust: stable
os: osx
env: FEATURES='' env: FEATURES=''
- rust: beta - rust: beta
os: linux
env: FEATURES=''
- rust: beta
os: osx
env: FEATURES='' env: FEATURES=''
- rust: nightly - rust: nightly
os: linux
env: FEATURES=nightly
- rust: nightly
os: osx
env: FEATURES=nightly env: FEATURES=nightly
os:
- linux
- osx
cache: cache:
directories: directories:
- $HOME/.cargo - $HOME/.cargo

View file

@ -33,4 +33,4 @@ artifacts:
build: false build: false
test_script: 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) { if val == "1" && key.starts_with(feature_prefix) {
let krate = key[feature_prefix.len()..].to_lowercase(); let krate = key[feature_prefix.len()..].to_lowercase();
match krate.as_ref() { match krate.as_ref() {
"default" | "unix" | "generic" | "test_unimplemented" => continue, "default" | "unix" | "generic" | "nightly" | "test_unimplemented" => continue,
_ => {}, _ => {},
} }
crates.push(krate.to_string()); crates.push(krate.to_string());