run unit and integration tests separately, only generate coverage reports for unit tests

This commit is contained in:
Marten Seemann
2016-06-08 15:14:36 +07:00
parent c15fb86425
commit 6d652cca4d
3 changed files with 27 additions and 7 deletions

12
.travis/script.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
go get -t ./...
if [ ${TESTMODE} == "unit" ]; then
ginkgo -r --cover --randomizeAllSpecs --randomizeSuites --trace --progress --skipPackage integrationtests
fi
if [ ${TESTMODE} == "integration" ]; then
ginkgo -r --randomizeAllSpecs --randomizeSuites --trace --progress integrationtests
fi