-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
65 lines (59 loc) · 1.93 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
63
64
65
# On GitHub the `dbt build` command often returns "leaked semaphores" errors.
build-and-run-dbt-bouncer:
poetry run dbt deps
poetry run dbt build
poetry run dbt docs generate
poetry run dbt-bouncer --config-file ./dbt-bouncer-example.yml
build-artifacts:
poetry run python ./scripts/generate_artifacts.py
build-pex:
poetry run pex . \
--interpreter-constraint ">=3.9,<3.14" \
--jobs 128 \
--max-install-jobs 0 \
--output-file ./dist/dbt-bouncer.pex \
--pip-version 24.1 \
--platform macosx_11_0_x86_64-cp-39-cp39 \
--platform macosx_11_0_x86_64-cp-310-cp310 \
--platform macosx_11_0_x86_64-cp-311-cp311 \
--platform macosx_11_0_x86_64-cp-312-cp312 \
--platform macosx_10_13_x86_64-cp-313-cp313 \
--platform manylinux2014_x86_64-cp-39-cp39 \
--platform manylinux2014_x86_64-cp-310-cp310 \
--platform manylinux2014_x86_64-cp-311-cp311 \
--platform manylinux2014_x86_64-cp-312-cp312 \
--platform manylinux2014_x86_64-cp-313-cp313 \
--python-shebang='/usr/bin/env python' \
--script dbt-bouncer
test:
$(MAKE) test-unit
$(MAKE) test-integration
test-integration:
poetry run pytest \
-c ./tests \
--junitxml=coverage.xml \
--cov-report=term-missing:skip-covered \
--cov=src/dbt_bouncer/ \
--numprocesses 5 \
./tests/integration \
$(MAKE_ARGS)
test-unit:
poetry run pytest \
-c ./tests \
--junitxml=coverage.xml \
--cov-report=term-missing:skip-covered \
--cov=src/dbt_bouncer/ \
--numprocesses 5 \
./tests/unit \
-m 'not not_in_parallel' && \
poetry run pytest \
-c ./tests \
--junitxml=coverage.xml \
--cov-report=term-missing:skip-covered \
--cov=src/dbt_bouncer/ \
--cov-append \
-m not_in_parallel
test-windows:
poetry run pytest -c ./tests --numprocesses 5 ./tests/unit -m 'not not_in_parallel' && \
poetry run pytest -c ./tests -m not_in_parallel && \
poetry run pytest -c ./tests --numprocesses 5 ./tests/integration