mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
CI: add nightly features
This commit is contained in:
parent
68631e555f
commit
7a152248aa
3 changed files with 14 additions and 5 deletions
15
.travis.yml
15
.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
|
||||
|
|
|
@ -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
|
||||
|
|
2
build.rs
2
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());
|
||||
|
|
Loading…
Reference in a new issue