-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
43 lines (35 loc) · 1.13 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
.PHONY: install-tools
install-tools:
$(shell mkdir -p /tmp/sqlflow/resultscache)
.PHONY: test
test: test-unit test-integration
.PHONY: test-unit
test-unit:
PYICEBERG_HOME=$(shell pwd)/tests/config/ \
pytest \
--ignore=tests/benchmarks \
--ignore=tests/integration \
--ignore=tests/release \
tests
.PHONY: test-image
test-image: docker-image
pytest tests/release
.PHONY: test-integration
test-integration:
PYICEBERG_HOME=$(shell pwd)/tests/config/ pytest tests/integration
.PHONY: test-release
test-release: docker-image
TC_KAFKA_LIMIT_BROKER_TO_FIRST_HOST=true \
pytest tests/release
.PHONY: start-backing-services
start-backing-services:
docker-compose -f dev/kafka-single.yml up -d
.PHONY: docker-image
docker-image:
@GIT_HASH=$$(git rev-parse --short HEAD) && \
docker build --platform linux/amd64 -t turbolytics/sql-flow:$$GIT_HASH .
.PHONY: docker-image-multiarch
docker-image-multiarch:
@GIT_HASH=$$(git rev-parse --short HEAD) && \
docker build --platform linux/arm64 -t turbolytics/sql-flow:$$GIT_HASH .
# docker buildx build --platform linux/arm64,linux/amd64 -t turbolytics/sql-flow:multiarch-$$GIT_HASH --push .