-
Notifications
You must be signed in to change notification settings - Fork 109
/
Makefile
53 lines (38 loc) · 1.32 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
# bash needed for pipefail
SHELL := /bin/bash
clean:
find . -name "*.pyc" -delete
up:
docker compose up
down:
docker compose down
docker_build: clean
docker build -t lyft/confidant .
docker_test: docker_build docker_test_unit docker_test_integration docker_test_frontend down
docker_test_unit:
docker compose run --rm --no-deps confidant make test_unit
docker_test_integration:
docker compose run --rm confidant make test_integration
actions_test_integration:
docker compose -f docker-compose.yml -f docker-compose.integration.yml run confidant bash /srv/confidant/actions_run_integration.sh
docker_test_frontend:
docker compose run --rm confidant make test_frontend
test: test_unit test_integration test_frontend
test_integration: clean
mkdir -p build
# || true makes the end-result exit 0
test -d /venv && source /venv/bin/activate || true
pytest --strict tests/integration
test_unit: clean
mkdir -p build
# || true makes the end-result exit 0
test -d /venv && source /venv/bin/activate || true
pytest --strict --junitxml=build/unit.xml --cov=confidant --cov-report=html --cov-report=xml --cov-report=term --no-cov-on-fail tests/unit
test_frontend:
node_modules/grunt-cli/bin/grunt test
.PHONY: compile_deps # freeze requirements.in to requirements.txt
compile_deps:
./pip-compile.sh
.PHONY: docs
docs:
./docs/build.sh