forked from openshift/ci-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (57 loc) · 2 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
66
67
68
69
70
71
72
73
74
SHELL=/usr/bin/env bash -o pipefail
all: lint test build
.PHONY: all
build:
go build ./cmd/...
.PHONY: build
install:
go install ./cmd/...
.PHONY: install
test:
go test -race ./...
.PHONY: test
validate-vendor:
go version
GO111MODULE=on GOPROXY=https://proxy.golang.org go mod tidy
GO111MODULE=on GOPROXY=https://proxy.golang.org go mod vendor
git status -s ./vendor/ go.mod go.sum
test -z "$$(git status -s ./vendor/ go.mod go.sum | grep -v vendor/modules.txt)"
.PHONY: validate-vendor
lint:
gofmt -s -l $(shell go list -f '{{ .Dir }}' ./... ) | grep ".*\.go"; if [ "$$?" = "0" ]; then gofmt -s -d $(shell go list -f '{{ .Dir }}' ./... ); exit 1; fi
go vet ./...
.PHONY: lint
format:
gofmt -s -w $(shell go list -f '{{ .Dir }}' ./... )
.PHONY: format
integration: integration-prowgen integration-pj-rehearse integration-ci-operator integration-ci-operator-configresolver integration-secret-wrapper integration-testgrid-generator integration-repo-init integration-group-auto-updater
.PHONY: integration
integration-prowgen:
test/prowgen-integration/run.sh
test/prowgen-integration/run.sh subdir
.PHONY: integration-prowgen
integration-pj-rehearse:
test/pj-rehearse-integration/run.sh
.PHONY: integration-pj-rehearse
integration-ci-operator:
test/ci-operator-integration/base/run.sh
test/ci-operator-integration/multi-stage/run.sh
.PHONY: integration-ci-operator
integration-ci-operator-configresolver:
test/ci-operator-configresolver-integration/run.sh
.PHONY: integration-ci-operator-configresolver
integration-secret-wrapper:
test/secret-wrapper-integration.sh
.PHONY: integration-secret-wrapper
integration-testgrid-generator:
test/testgrid-config-generator/run.sh
.PHONY: integration-testgrid-generator
integration-repo-init:
test/repo-init-integration/run.sh
.PHONY: integration-repo-init
check-breaking-changes:
test/validate-prowgen-breaking-changes.sh
.PHONY: check-breaking-changes
integration-group-auto-updater:
test/group-auto-updater-integration/run.sh
.PHONY: integration-group-auto-updater