Merge branch 'hotfix/travis-exit-codes'

Fixes build script to properly report both test and CS failures.
Final fixes for travis builds

- Indicate exactly which failure caused the exit status
- Better comparison of operators
Merge branch 'hotfix/travis-build-status-codes' into develop

Fixes for travis build status