good morning!!!!

Skip to content
Snippets Groups Projects
Commit b2354955 authored by José Carlos Nieto's avatar José Carlos Nieto
Browse files

Adding "require-client" targets.

parent 79a6c4f8
No related branches found
No related tags found
No related merge requests found
all: setup
setup:
require-client:
if [ -z "$(which mongo)" ]; then \
echo 'Missing "mongo" command. Please install the MongoDB client and try again.' && \
exit 1; \
fi
setup: require-client
mongo upperio_tests --eval 'db.addUser("upperio_tests", "upperio_secret")'
......@@ -4,7 +4,13 @@ BENCHTIME ?= 10s
build:
go build && go install
reset-db:
require-client:
if [ -z "$(which mysql)" ]; then \
echo 'Missing "mysql" command. Please install the MySQL client and try again.' && \
exit 1; \
fi
reset-db: require-client
$(MAKE) reset-db -C _dumps
test: reset-db
......
......@@ -4,7 +4,13 @@ BENCHTIME ?= 10s
build:
go build && go install
reset-db:
require-client:
if [ -z "$(which psql)" ]; then \
echo 'Missing "psql" command. Please install the PostgreSQL client and try again.' && \
exit 1; \
fi
reset-db: require-client
$(MAKE) reset-db -C _dumps
test: reset-db
......
......@@ -3,7 +3,13 @@ BENCHTIME ?= 10s
build:
go build && go install
reset-db:
require-client:
if [ -z "$(which ql)" ]; then \
echo 'Missing "ql" command. Please install the QL cli tool and try again.' && \
exit 1; \
fi
reset-db: require-client
$(MAKE) reset-db -C _dumps
test: reset-db
......
......@@ -3,7 +3,13 @@ BENCHTIME ?= 10s
build:
go build && go install
reset-db:
require-client:
if [ -z "$(which sqlite3)" ]; then \
echo 'Missing "sqlite3" command. Please install SQLite3 and try again.' && \
exit 1; \
fi
reset-db: require-client
$(MAKE) reset-db -C _dumps
test: reset-db
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment