pantry/projects/crates.io/semverator/package.yml

34 lines
771 B
YAML
Raw Normal View History

2023-01-29 04:31:22 +03:00
distributable:
url: https://github.com/jhheider/semverator/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
provides:
- bin/semverator
versions:
github: jhheider/semverator
strip: /v/
build:
dependencies:
rust-lang.org: '>=1.56'
rust-lang.org/cargo: '*'
script:
cargo install --locked --path . --root {{prefix}}
test:
2023-08-11 23:37:03 +03:00
script:
2023-01-29 04:31:22 +03:00
# Passes
2023-08-11 23:37:03 +03:00
- semverator validate 1.2.3
- semverator eq 1.2.3 1.2.3
- semverator neq 1.2.3 1.2.4
- semverator gt 1.2.3 1.2.2
- semverator lt 1.2.3 1.2.4
2023-01-29 04:31:22 +03:00
# Fails
2023-08-11 23:37:03 +03:00
- test ! $(semverator validate 1.2.three)
- test ! $(semverator eq 1.2.3 1.2.4)
- test ! $(semverator neq 1.2.3 1.2.3)
- test ! $(semverator gt 1.2.3 1.2.4)
- test ! $(semverator lt 1.2.3 1.2.2)