h4. Actual Behavior & Analysis
While working on other bash scripts, I noticed a small bug in {{.travis.yml}}. It checks for success with:
grep '0 failures, 0 errors.' test-out.txt
But this will match any failure count that ends in 0, to illustrate problem:
$ echo "10 failures, 0 errors." | grep '0 failures, 0 errors.'
10 failures, 0 errors.
h4. Fix
Match to start of line with {{^}}, to illustrate fix:
$ echo "10 failures, 0 errors." | grep '^0 failures, 0 errors.'
$ echo $?
1
$ echo "0 failures, 0 errors." | grep '^0 failures, 0 errors.'
0 failures, 0 errors.