mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
Merge pull request #794 from ebfe/travis
travis: skip unsupported utils on stable/beta builds
This commit is contained in:
commit
8782552f45
3 changed files with 30 additions and 7 deletions
|
@ -11,10 +11,9 @@ cache:
|
|||
- $HOME/.cargo
|
||||
sudo: false
|
||||
script:
|
||||
- ./.travis_fixup.sh
|
||||
- cargo build
|
||||
- cargo test --no-fail-fast
|
||||
matrix:
|
||||
allow_failures:
|
||||
- rust: stable
|
||||
- rust: beta
|
||||
- os: osx
|
||||
|
|
24
.travis_fixup.sh
Executable file
24
.travis_fixup.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ "$CI" != "true" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$TRAVIS_RUST_VERSION" in
|
||||
"beta")
|
||||
skip=$(grep skip_on_beta Cargo.toml | cut -d\" -f 2)
|
||||
sed -i.org "/skip_on_beta/d" Cargo.toml
|
||||
;;
|
||||
"stable")
|
||||
skip=$(grep -E "skip_on_beta|skip_on_stable" Cargo.toml | cut -d\" -f 2)
|
||||
sed -i.org "/skip_on_beta/d" Cargo.toml
|
||||
sed -i.org "/skip_on_stable/d" Cargo.toml
|
||||
;;
|
||||
esac
|
||||
|
||||
for x in $skip; do
|
||||
if [ -f tests/$x.rs ]; then
|
||||
mv tests/$x.rs tests/$x.rs.skip
|
||||
fi
|
||||
done
|
||||
|
10
Cargo.toml
10
Cargo.toml
|
@ -40,11 +40,11 @@ generic = [
|
|||
"dirname",
|
||||
"echo",
|
||||
"env",
|
||||
"expand",
|
||||
"expand", # skip_on_beta
|
||||
"expr",
|
||||
"factor",
|
||||
"false",
|
||||
"fmt",
|
||||
"fmt", # skip_on_beta
|
||||
"fold",
|
||||
"hashsum",
|
||||
"head",
|
||||
|
@ -56,7 +56,7 @@ generic = [
|
|||
"od",
|
||||
"paste",
|
||||
"printenv",
|
||||
"ptx",
|
||||
"ptx", # skip_on_stable
|
||||
"pwd",
|
||||
"readlink",
|
||||
"realpath",
|
||||
|
@ -75,11 +75,11 @@ generic = [
|
|||
"tail",
|
||||
"tee",
|
||||
"test",
|
||||
"tr",
|
||||
"tr", # skip_on_beta
|
||||
"true",
|
||||
"truncate",
|
||||
"tsort",
|
||||
"unexpand",
|
||||
"unexpand", # skip_on_beta
|
||||
"uniq",
|
||||
"wc",
|
||||
"whoami",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue