-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
33 lines (26 loc) · 867 Bytes
/
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
SHELL = /bin/bash
.DEFAULT_GOAL := help
COMPOSE_FILE ?= docker/docker-compose.yml
DC_BASH=docker-compose --log-level ERROR -f ${COMPOSE_FILE}
DC=@${DC_BASH}
export USER_ID=$(shell id -u)
export GROUP_ID=$(shell id -g)
##cypress-base: update Cypress base container
.PHONY: cypress-base
cypress-base:
${DC} build --pull ec-cypress
##cypress-install: install node_modules and rebuild the cypress binaries
.PHONY: cypress-install
cypress-install: cypress-base
${DC} run --rm ec-cypress-shell npm ci
${DC} run --rm ec-cypress-shell npm rebuild cypress
##cypress-run: run integration tests
.PHONY: cypress-run
cypress-run:
${DC} run --rm ec-cypress-shell npm run test:visual:ci
##cypress-integration: install and run integration tests
.PHONY: cypress-integration
cypress-integration: cypress-install cypress-run
.PHONY: help
help: Makefile
@sed -n 's/^##//p' $<