forked from compdemocracy/polis
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
53 lines (35 loc) · 1.4 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
BASEURL ?= https://127.0.0.1.sslip.io
E2E_RUN = cd e2e; CYPRESS_BASE_URL=$(BASEURL)
pull: ## Pull most recent Docker container builds (nightlies)
docker-compose pull
start: ## Start all Docker containers
docker-compose up --detach
start-rebuild: ## Start all Docker containers, [re]building as needed
docker-compose up --detach --build
e2e-install: e2e/node_modules ## Install Cypress E2E testing tools
$(E2E_RUN) npm install
e2e-prepare: ## Prepare to run Cypress E2E tests
@# Testing embeds requires a override of a file prior to build.
cp e2e/cypress/fixtures/html/embed.html client-admin/embed.html
e2e-run-minimal: ## Run E2E tests: minimal (smoke test)
$(E2E_RUN) npm run e2e:minimal
e2e-run-standalone: ## Run E2E tests: standalone (no credentials required)
$(E2E_RUN) npm run e2e:standalone
e2e-run-secret: ## Run E2E tests: secret (credentials required)
$(E2E_RUN) npm run e2e:secret
e2e-run-subset: ## Run E2E tests: filter tests by TEST_FILTER envvar (without browser exit)
$(E2E_RUN) npm run e2e:subset
e2e-run-all: ## Run E2E tests: all
$(E2E_RUN) npm run e2e:all
# Helpful CLI shortcuts
rbs: start-rebuild
%:
@true
.PHONY: help
help:
@echo 'Usage: make <command>'
@echo
@echo 'where <command> is one of the following:'
@echo
@grep -E '^[a-z0-9A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help