-
-
Notifications
You must be signed in to change notification settings - Fork 81
/
Makefile
62 lines (40 loc) · 1.66 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
54
55
56
57
58
59
60
61
62
.PHONY: build run stop clean run-dev test-contract test test-unit test-integration test-mutation-diff test-mutation test-infra
# serverest
NAME_IMAGE=paulogoncalvesbh/serverest
# COMANDOS PARA USAR A IMAGEM DE PRODUÇÃO \/
default: build run
build:
@DOCKER_BUILDKIT=1 docker build --file Dockerfile --tag ${NAME_IMAGE} .
run:
@docker run -p 3000:3000 ${NAME_IMAGE}
clean:
@docker rmi -f ${NAME_IMAGE}
stop:
@docker stop `docker ps -q`
# COMANDOS DE DESENVOLVIMENTO \/
run-dev:
@docker-compose up --abort-on-container-exit --build run-dev
run-debug:
docker build --file Dockerfile --tag serverest-debug .
docker run --entrypoint "npm" -p 3000:3000 -p 9229:9229 -v $(shell pwd):/app serverest-debug run start:debug
test-contract:
@docker-compose up --abort-on-container-exit --build test-contract
test: test-unit test-integration test-e2e-localhost
test-pre-push: test-unit test-integration
test-unit:
@docker compose up --abort-on-container-exit --build test-unit
test-integration:
@docker compose up --abort-on-container-exit --build test-integration
test-e2e-localhost:
@docker-compose up --abort-on-container-exit --exit-code-from test-e2e-localhost --build test-e2e-localhost
test-mutation-diff:
@docker-compose up --abort-on-container-exit --build test-mutation-diff
test-mutation:
@docker-compose up --abort-on-container-exit --build test-mutation
test-infra:
@docker-compose up --abort-on-container-exit --build test-infra
# COMANDOS DE TESTE PÓS DEPLOY \/
test-e2e-staging:
@docker-compose up --abort-on-container-exit --build test-e2e-staging
test-e2e-smoke-production:
@docker-compose up --abort-on-container-exit --build test-e2e-smoke-production