forked from kubeflow/pipelines
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (27 loc) · 867 Bytes
/
Makefile
File metadata and controls
32 lines (27 loc) · 867 Bytes
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
# Check diff for generated files
.PHONY: check-diff
check-diff:
/bin/bash -c 'if [[ -n "$$(git status --porcelain)" ]]; then \
echo "ERROR: Generated files are out of date"; \
echo "Please regenerate using make clean all for api and kubernetes_platform"; \
echo "Changes found in the following files:"; \
git status; \
echo "Diff of changes:"; \
git diff; \
exit 1; \
fi'
# Tools
BIN_DIR ?= $(CURDIR)/bin
.PHONY: ginkgo
ginkgo:
mkdir -p $(BIN_DIR)
GOBIN=$(BIN_DIR) go install github.com/onsi/ginkgo/v2/ginkgo@latest
@echo "Ginkgo installed to $(BIN_DIR)/ginkgo"
# Component YAML Tests
.PHONY: test-component-yaml-install-deps
test-component-yaml-install-deps:
python3 -m pip install pytest
python3 -m pip install pytest-asyncio-cooperative==0.37.0
.PHONY: test-component-yaml-run
test-component-yaml-run:
./test/presubmit-component-yaml.sh