aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEmiliano Ciavatta2020-04-07 18:46:36 +0000
committerEmiliano Ciavatta2020-04-07 18:46:56 +0000
commit468690c60ee2e57ed2ccb4375e9ada5d2fed9473 (patch)
tree138b9f4c69731abef66e789b0e044417824f5c49 /scripts
parent590405d948530aecdf7399833c3d0b8585f5601b (diff)
Before storage refactor
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis_tests.sh18
1 files changed, 18 insertions, 0 deletions
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