Skip to content

Commit

Permalink
ci: run coverage for orientdb backend
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce committed Nov 16, 2017
1 parent e646cde commit 3285ea0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ units=1
functionals=1
scale=1
coveralls=0
backend=elasticsearch

generate_cover_data() {
rm -rf "$workdir"
Expand All @@ -35,7 +36,7 @@ generate_cover_data() {
export SKYDIVE_ANALYZERS=localhost:8082

coverfile="../$workdir/functional.cover"
make test.functionals.batch VERBOSE=true TIMEOUT=20m GOFLAGS="-cover -covermode=$mode -coverpkg=$PKG" ARGS="$ARGS -test.coverprofile=$coverfile -standalone -graph.backend elasticsearch -storage.backend elasticsearch" TEST_PATTERN=$TEST_PATTERN
make test.functionals.batch VERBOSE=true TIMEOUT=20m GOFLAGS="-cover -covermode=$mode -coverpkg=$PKG" ARGS="$ARGS -test.coverprofile=$coverfile -standalone -graph.backend $backend -storage.backend $backend" TEST_PATTERN=$TEST_PATTERN
fi

if [ "$scale" -eq 1 ]; then
Expand Down Expand Up @@ -99,6 +100,8 @@ do
functionals=0 ;;
--no-scale)
scale=0 ;;
--orientdb)
backend=orientdb ;;
--coveralls)
coveralls=1 ;;
*)
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci/run-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export ARGS="-graph.output ascii"
./coverage.sh --no-functionals --no-scale
sudo scripts/ci/cleanup.sh snapshot
sudo scripts/ci/cleanup.sh cleanup
./coverage.sh --no-functionals --no-scale --orientdb
sudo scripts/ci/cleanup.sh snapshot
sudo scripts/ci/cleanup.sh cleanup
./coverage.sh --no-units --no-scale
sudo scripts/ci/cleanup.sh snapshot
sudo scripts/ci/cleanup.sh cleanup
Expand Down

0 comments on commit 3285ea0

Please sign in to comment.