Skip to content

Commit

Permalink
Minor example makefile fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitkarpenko committed Jul 4, 2022
1 parent b20d35a commit 40da443
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/with-db-example/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.PHONY: setup
setup: teardown
@docker-compose -f docker-compose.yaml up --build -d
@sleep 2
@docker-compose -f docker-compose.yaml up --build --wait -d
@curl http://localhost:5000/info/10

.PHONY: teardown
Expand All @@ -11,6 +10,9 @@ teardown:
.PHONY: test
test-postgres: setup
./gonkey -db_dsn "postgresql://testing_user:testing_password@localhost:5432/testing_db?sslmode=disable" -debug -host http://localhost:5000 -tests ./cases/postgres
make teardown

.PHONY: test-aerospike
test-aerospike: setup
./gonkey -debug -fixtures ./fixtures/ -db-type aerospike -aerospike_host "localhost:3000/test" -host http://localhost:5000 -tests ./cases/aerospike
./gonkey -debug -fixtures ./fixtures/ -db-type aerospike -aerospike_host "localhost:3000/test" -host http://localhost:5000 -tests ./cases/aerospike
make teardown

0 comments on commit 40da443

Please sign in to comment.