1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/bash # wait mongodb server sleep 10 # run tests go test -v -race -coverprofile=coverage.txt -covermode=atomic RET_CODE=$? # if [ $RET_CODE -eq 0 ]; then echo "travis_tests_success" else echo "travis_tests_fails" fi exit $RET_CODE