influxdb/e2e/Makefile

36 lines
973 B
Makefile

.PHONY: docker-build docker-prep docker-test docker-test-kill docker-report test clean
RUNCMD ?= cucumber-js --tags 'not @tested and not @error-collateral'
docker-build:
docker build -t e2e-tests -f scripts/Dockerfile.e2e .
docker-prep:
mkdir -p /tmp/report \
&& docker pull quay.io/influxdb/influx:nightly
docker run -d --rm --name=test-influxdb quay.io/influxdb/influx:nightly influxd --e2e-testing=true \
&& sleep 30s
docker-test: docker-build
docker run --rm --name=test-e2e -v /tmp/report:/selenium-accept-infl2/report --network=container:test-influxdb e2e-tests ${RUNCMD}
docker-report:
docker run --rm -t --name=test-e2e -v /tmp/report:/selenium-accept-infl2/report e2e-tests npm run report:html
docker-test-kill:
docker rm -f test-e2e
test: docker-test docker-report
clean:
docker rm -f test-influxdb
rm -rf /tmp/report
bonitoo-prep:
npm run influx:setup
bonitoo-docker:
./scripts/containerTests.sh
bonitoo-test: bonitoo-prep bonitoo-docker