mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
clean(semverator)
This commit is contained in:
parent
95e61dea32
commit
8d57b6b4a7
1 changed files with 11 additions and 17 deletions
|
@ -17,23 +17,17 @@ build:
|
||||||
cargo install --locked --path . --root {{prefix}}
|
cargo install --locked --path . --root {{prefix}}
|
||||||
|
|
||||||
test:
|
test:
|
||||||
qa-required: true
|
script:
|
||||||
script: |
|
|
||||||
# Passes
|
# Passes
|
||||||
semverator validate 1.2.3
|
- semverator validate 1.2.3
|
||||||
semverator eq 1.2.3 1.2.3
|
- semverator eq 1.2.3 1.2.3
|
||||||
semverator neq 1.2.3 1.2.4
|
- semverator neq 1.2.3 1.2.4
|
||||||
semverator gt 1.2.3 1.2.2
|
- semverator gt 1.2.3 1.2.2
|
||||||
semverator lt 1.2.3 1.2.4
|
- semverator lt 1.2.3 1.2.4
|
||||||
|
|
||||||
# Fails
|
# Fails
|
||||||
semverator validate 1.2.three || rv1=$?
|
- test ! $(semverator validate 1.2.three)
|
||||||
test $rv1 -ne 0
|
- test ! $(semverator eq 1.2.3 1.2.4)
|
||||||
semverator eq 1.2.3 1.2.4 || rv2=$?
|
- test ! $(semverator neq 1.2.3 1.2.3)
|
||||||
test $rv2 -ne 0
|
- test ! $(semverator gt 1.2.3 1.2.4)
|
||||||
semverator neq 1.2.3 1.2.3 || rv3=$?
|
- test ! $(semverator lt 1.2.3 1.2.2)
|
||||||
test $rv3 -ne 0
|
|
||||||
semverator gt 1.2.3 1.2.4 || rv4=$?
|
|
||||||
test $rv4 -ne 0
|
|
||||||
semverator lt 1.2.3 1.2.2 || rv5=$?
|
|
||||||
test $rv5 -ne 0
|
|
||||||
|
|
Loading…
Reference in a new issue