mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +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
|
- $HOME/.cargo
|
||||||
sudo: false
|
sudo: false
|
||||||
script:
|
script:
|
||||||
|
- ./.travis_fixup.sh
|
||||||
- cargo build
|
- cargo build
|
||||||
- cargo test --no-fail-fast
|
- cargo test --no-fail-fast
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- rust: stable
|
|
||||||
- rust: beta
|
|
||||||
- os: osx
|
- 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",
|
"dirname",
|
||||||
"echo",
|
"echo",
|
||||||
"env",
|
"env",
|
||||||
"expand",
|
"expand", # skip_on_beta
|
||||||
"expr",
|
"expr",
|
||||||
"factor",
|
"factor",
|
||||||
"false",
|
"false",
|
||||||
"fmt",
|
"fmt", # skip_on_beta
|
||||||
"fold",
|
"fold",
|
||||||
"hashsum",
|
"hashsum",
|
||||||
"head",
|
"head",
|
||||||
|
@ -56,7 +56,7 @@ generic = [
|
||||||
"od",
|
"od",
|
||||||
"paste",
|
"paste",
|
||||||
"printenv",
|
"printenv",
|
||||||
"ptx",
|
"ptx", # skip_on_stable
|
||||||
"pwd",
|
"pwd",
|
||||||
"readlink",
|
"readlink",
|
||||||
"realpath",
|
"realpath",
|
||||||
|
@ -75,11 +75,11 @@ generic = [
|
||||||
"tail",
|
"tail",
|
||||||
"tee",
|
"tee",
|
||||||
"test",
|
"test",
|
||||||
"tr",
|
"tr", # skip_on_beta
|
||||||
"true",
|
"true",
|
||||||
"truncate",
|
"truncate",
|
||||||
"tsort",
|
"tsort",
|
||||||
"unexpand",
|
"unexpand", # skip_on_beta
|
||||||
"uniq",
|
"uniq",
|
||||||
"wc",
|
"wc",
|
||||||
"whoami",
|
"whoami",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue