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}}
|
||||
|
||||
test:
|
||||
qa-required: true
|
||||
script: |
|
||||
script:
|
||||
# Passes
|
||||
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
|
||||
- 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
|
||||
|
||||
# Fails
|
||||
semverator validate 1.2.three || rv1=$?
|
||||
test $rv1 -ne 0
|
||||
semverator eq 1.2.3 1.2.4 || rv2=$?
|
||||
test $rv2 -ne 0
|
||||
semverator neq 1.2.3 1.2.3 || rv3=$?
|
||||
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
|
||||
- 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)
|
||||
|
|
Loading…
Reference in a new issue