-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (44 loc) · 1.68 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
FLUXV2_REPOS := fluxcd/community fluxcd/flux2 fluxcd/flux2-kustomize-helm-example fluxcd/flux2-multi-tenancy fluxcd/go-git-providers \
fluxcd/helm-controller fluxcd/image-automation-controller fluxcd/image-reflector-controller \
fluxcd/kustomize-controller fluxcd/notification-controller fluxcd/pkg fluxcd/source-controller \
fluxcd/source-watcher fluxcd/terraform-provider-flux fluxcd/website fluxcd/webui
FLUXV1_REPOS := fluxcd/flux fluxcd/helm-operator fluxcd/flagger fluxcd/charts fluxcd/homebrew-tap \
fluxcd/helm-operator-docs-redirects fluxcd/legacy-docs-redirects fluxcd/flux-recv \
fluxcd/gitsrv fluxcd/distribution
# .PHONY: all
# all: clean doit
main: doit
.PHONY: fluxv1
fluxv1: cleanv1 doitv1
review.csv:
rvm $(shell cat .ruby-version) do bundle exec epr $(FLUXV2_REPOS) > review.csv
review-v1.csv:
rvm $(shell cat .ruby-version) do bundle exec epr $(FLUXV1_REPOS) > review-v1.csv
.PHONY: reset
reset:
rvm $(shell cat .ruby-version) do bundle exec ./reset-targets.rb review.csv v2 discussions.csv
.PHONY: clean cleanv1
clean:
rm -f review.csv discussions.csv doit test
cleanv1:
rm -f review-v1.csv
discussions.csv: test
# .PHONY: doit doitv1
doit: review.csv discussions.csv
rvm $(shell cat .ruby-version) do bundle exec ./bugcrush.rb review.csv v2 discussions.csv
touch doit
.PHONY: doitv1
doitv1: review-v1.csv
rvm $(shell cat .ruby-version) do bundle exec ./bugcrush.rb review-v1.csv v1
# do it
.PHONY: deps
deps:
rvm $(shell cat .ruby-version) do bundle install
.PHONY: dry-run
dry-run:
echo "do a dry run (check auth is ready, github token can pull, do not write anything)"
exit 1
test:
#rvm $(shell cat .ruby-version) do bundle exec srb tc
./jenkins/rake-ci.sh
touch test