mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
+sanitize
This commit is contained in:
parent
ad1e9e60c5
commit
d3fcbff891
1 changed files with 33 additions and 0 deletions
33
projects/crates.io/sanitize/package.yml
Normal file
33
projects/crates.io/sanitize/package.yml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/jhheider/sanitize/archive/refs/tags/v{{ version }}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/sanitize
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: jhheider/sanitize/tags
|
||||||
|
strip: /v/
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
rust-lang.org: '>=1.56'
|
||||||
|
rust-lang.org/cargo: '*'
|
||||||
|
script:
|
||||||
|
cargo install --locked --path . --root {{prefix}}
|
||||||
|
|
||||||
|
test:
|
||||||
|
script: |
|
||||||
|
mkdir -p foo/foo
|
||||||
|
touch foo/bar foo/bat foo/foo/bat foo/foo/bar
|
||||||
|
sanitize foo -f $FIXTURE -y
|
||||||
|
test "$(find foo | sort)" = "$OUT"
|
||||||
|
env:
|
||||||
|
OUT: |
|
||||||
|
foo
|
||||||
|
foo/bar
|
||||||
|
foo/foo
|
||||||
|
foo/foo/bat
|
||||||
|
fixture: |
|
||||||
|
/bar
|
||||||
|
/foo/bat
|
Loading…
Reference in a new issue