-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathMakefile
39 lines (27 loc) · 933 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
34
35
36
37
38
39
unit-test:
pytest -v
smoke-build:
rm -rf ./dist && \
python setup.py sdist bdist_wheel && \
docker build -t brotab-smoke -f smoke.Dockerfile .
smoke-test:
docker run -it brotab-smoke
integration-build:
docker build -t brotab-integration -f jess.Dockerfile .
integration-run-container:
docker run -v "$(pwd):/brotab" -p 19222:9222 -p 14625:4625 -it --rm --cpuset-cpus 0 --memory 512mb -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY -v /dev/shm:/dev/shm brotab-integration
integration-test: export INTEGRATION_TEST = 1
integration-test:
xhost +local:docker
pytest -v -k test_integration -s
test-all: unit-test smoke-build smoke-test integration-build integration-test
@echo Testing all
all:
echo ALL
reset:
pkill python3; pkill xvfb-run; pkill node; pkill Xvfb; pkill firefox
switch_to_dev:
echo "Switching to DEV"
switch_to_prod:
echo "Switching to PROD"
.PHONY: reset switch_to_dev switch_to_prod