-
Notifications
You must be signed in to change notification settings - Fork 176
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (42 loc) · 1.86 KB
/
Makefile
File metadata and controls
55 lines (42 loc) · 1.86 KB
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
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the "License");
# you may not use it except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# golangci-lint version (keep in sync with CI and README)
GOLANGCI_LINT_VERSION := v2.8.0
.PHONY: test lint lint-install integration-setup integration-test integration-scanner integration-io integration-rest integration-spark docs-gen
test:
go test -v ./...
docs-gen:
go run ./website/gen
lint:
golangci-lint run --timeout=10m
lint-install:
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION)
integration-setup:
docker compose -f internal/recipe/docker-compose.yml up -d
sleep 10
docker compose -f internal/recipe/docker-compose.yml exec -T spark-iceberg ipython ./provision.py
sleep 10
integration-test: integration-scanner integration-io integration-rest integration-spark integration-hive
integration-scanner:
go test -tags=integration -v -run="^TestScanner" ./table
integration-io:
go test -tags=integration -v ./io/...
integration-rest:
go test -tags=integration -v -run="^TestRestIntegration$$" ./catalog/rest
integration-spark:
go test -tags=integration -v -run="^TestSparkIntegration" ./table
integration-hive:
go test -tags=integration -v ./catalog/hive/...