clean(semverator)

This commit is contained in:
Jacob Heider 2023-08-11 16:37:03 -04:00
parent 95e61dea32
commit 8d57b6b4a7
No known key found for this signature in database
GPG key ID: A98011B5713535BF

View file

@ -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)