Skip to content

Commit

Permalink
clean(semverator)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider committed Aug 11, 2023
1 parent 95e61de commit 8d57b6b
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions projects/crates.io/semverator/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 8d57b6b

Please sign in to comment.