From 468690c60ee2e57ed2ccb4375e9ada5d2fed9473 Mon Sep 17 00:00:00 2001 From: Emiliano Ciavatta Date: Tue, 7 Apr 2020 20:46:36 +0200 Subject: Before storage refactor --- scripts/travis_tests.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/travis_tests.sh (limited to 'scripts') diff --git a/scripts/travis_tests.sh b/scripts/travis_tests.sh new file mode 100755 index 0000000..5c51823 --- /dev/null +++ b/scripts/travis_tests.sh @@ -0,0 +1,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 -- cgit v1.2.3-70-g09d2