forked from OpenSlides/openslides-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 1.24 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
docker-run=docker run -ti -v `pwd`/client/src:/app/src -v `pwd`/client/cli:/app/cli -p 127.0.0.1:9001:9001/tcp openslides-client-dev
build-dev:
docker build -t openslides-client-dev -f Dockerfile.dev .
build-prod:
docker build -t openslides-client -f Dockerfile .
run-dev: | build-dev
$(docker-run)
run-dev-interactive: | build-dev
$(docker-run) sh
run-cleanup-standalone: | build-dev
$(docker-run) npm run cleanup
run-cleanup:
docker exec -it $$(docker ps -a -q --filter ancestor=openslides-client-dev) npm run cleanup
run-tests: | build-dev
docker run -t openslides-client-dev npm run lint
docker run -t openslides-client-dev npm run prettify-check
docker run -t openslides-client-dev npm run test-silently
docker run -t openslides-client-dev npm run build-debug
run-karma-tests: | build-dev
docker run -t openslides-client-dev /bin/sh -c "apk add chromium && npm run test-silently -- --browsers=ChromiumHeadlessNoSandbox"
run-check-linting:
docker run -t openslides-client-dev npm run lint
run-check-prettifying:
docker run -t openslides-client-dev npm run prettify-check
run-playwright:
docker compose -f client/tests/docker-compose.test.yml build
docker compose -f client/tests/docker-compose.test.yml up --exit-code-from playwright