aboutsummaryrefslogtreecommitdiff
path: root/scripts/travis_tests.sh
blob: 5c518233c12bc74af16b2ca190fd9d764c67f434 (plain) (blame)
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