2018-03-28 04:30:18 +02:00
|
|
|
DB_HOST ?= `docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' opensupports-db`
|
|
|
|
|
2020-05-13 07:51:51 +02:00
|
|
|
build:
|
|
|
|
@docker build -t opensupports-tests .
|
2018-03-28 04:30:18 +02:00
|
|
|
|
|
|
|
run:
|
2020-05-13 07:51:51 +02:00
|
|
|
@docker run -it --network os-net -v ${PWD}:/app -v ${PWD}/../server:/server opensupports-tests make test
|
|
|
|
|
2022-05-04 16:06:52 +02:00
|
|
|
run-not-interactive:
|
|
|
|
@docker run --network os-net -v ${PWD}:/app -v ${PWD}/../server:/server opensupports-tests make test
|
|
|
|
|
2020-05-13 07:51:51 +02:00
|
|
|
clear:
|
|
|
|
@docker run -it --network os-net -v ${PWD}:/app -v ${PWD}/../server:/server opensupports-tests make truncate-db
|
|
|
|
|
|
|
|
test: export MYSQL_HOST=opensupports-db
|
|
|
|
test: export MYSQL_PORT=3306
|
|
|
|
test: export API_URL=http://opensupports-srv
|
|
|
|
test:
|
2018-03-28 04:30:18 +02:00
|
|
|
./run-tests.sh
|
|
|
|
|
|
|
|
|
2020-05-13 07:51:51 +02:00
|
|
|
truncate-db: export MYSQL_HOST=opensupports-db
|
|
|
|
truncate-db: export MYSQL_PORT=3306
|
|
|
|
truncate-db:
|
|
|
|
./truncate_db.sh && \
|
|
|
|
./truncate_db.sh && \
|
|
|
|
./truncate_db.sh
|