Skip to content

Commit

Permalink
Merge pull request #187 from linkernetworks/johnlin/clean-db-after-test
Browse files Browse the repository at this point in the history
add clean db command
  • Loading branch information
John-Lin authored Jul 27, 2018
2 parents 4eaf3b6 + cfa1e15 commit 6ce3b1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ src.test-coverage-minikube:
sed -i.bak "s/localhost:9090/$$(minikube ip):30003/g; s/localhost:27017/$$(minikube ip):31717/g" config/testing.json
$(MAKE) src.test-coverage
mv config/testing.json.bak config/testing.json
kubectl exec mongo-0 -n vortex -- mongo vortex_test --eval 'printjson(db.dropDatabase())'

.PHONY: src.test-coverage-vagrant
src.test-coverage-vagrant:
sed -i.bak "s/localhost:9090/172.17.8.100:30003/g; s/localhost:27017/172.17.8.100:31717/g" config/testing.json
$(MAKE) src.test-coverage
mv config/testing.json.bak config/testing.json
kubectl exec mongo-0 -n vortex -- mongo vortex_test --eval 'printjson(db.dropDatabase())'

## check build env #############################

Expand Down

0 comments on commit 6ce3b1d

Please sign in to comment.