-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile.maker.yaml
More file actions
101 lines (83 loc) · 2.9 KB
/
Makefile.maker.yaml
File metadata and controls
101 lines (83 loc) · 2.9 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Configuration file for <https://github.com/sapcc/go-makefile-maker>
metadata:
url: https://github.com/sapcc/maia
binaries:
- name: maia
fromPackage: .
installTo: bin/
golang:
setGoModVersion: true
autoupdateableDeps: ^github.com/(?:sapcc|sap-cloud-infrastructure)/
dockerfile:
enabled: yes
golangciLint:
createConfig: true
githubWorkflow:
ci:
enabled: true
prepareMakeTarget: generate
nix:
extraPackages:
- go-bindata
- mockgen
typos:
enabled: true
extendExcludes:
- "web/static/vendor/"
- "docs/*.svg"
extendWords:
ba: ba
Alue: Alue
valu: valu
tabl: tabl
renovate:
enabled: true
assignees:
- notque
reuse:
annotations:
- paths:
- build/*.txt
- build/*.out
- etc/*.conf
- etc/*.json
- pkg/*/fixtures/*.json
- pkg/*/fixtures/*.txt
- pkg/test/*.json
- docs/*.png
- docs/*.svg
- web/static/vendor/bootstrap-3.4.1/css/*.css
- web/static/vendor/bootstrap-3.4.1/css/*.map
- web/static/vendor/bootstrap-3.4.1/fonts/*.eot
- web/static/vendor/bootstrap-3.4.1/fonts/*.svg
- web/static/vendor/bootstrap-3.4.1/fonts/*.ttf
- web/static/vendor/bootstrap-3.4.1/fonts/*.woff
- web/static/vendor/bootstrap-3.4.1/fonts/*.woff2
- web/static/vendor/bootstrap-3.4.1/js/*.js
- web/static/vendor/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker.min.js
- web/static/vendor/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker.min.css
- web/static/vendor/**/*.js
- web/static/js/graph_template.handlebar
- web/static/vendor/rickshaw/*.css
- web/static/img/*.gif
- web/static/img/*.ico
SPDX-FileCopyrightText: SAP SE or an SAP affiliate company
SPDX-License-Identifier: Apache-2.0
# TODO only run `go install` when necessary (cf. golangci-lint installation in the autogenerated "prepare-static-check" target)
# TODO replace go-bindata with <https://pkg.go.dev/embed>
verbatim: |
ifdef DEBUG
BINDDATA_FLAGS = -debug
endif
build/maia: generate
static-check: generate
generate: FORCE
if ! hash mockgen 2>/dev/null; then go install go.uber.org/mock/mockgen@latest; fi
if ! hash go-bindata 2>/dev/null; then go install github.com/go-bindata/go-bindata/[email protected]+incompatible; fi
if ! hash addlicense 2>/dev/null; then go install github.com/google/addlicense@latest; fi
mockgen --source=pkg/storage/interface.go --destination=pkg/storage/genmock.go --package=storage
mockgen --source=pkg/keystone/interface.go --destination=pkg/keystone/genmock.go --package=keystone
go-bindata $(BINDDATA_FLAGS) -pkg ui -o pkg/ui/bindata.go -ignore '(.*\.map|bootstrap\.js|bootstrap-theme\.css|bootstrap\.css)' web/templates/... web/static/...
gofmt -s -w ./pkg/ui/bindata.go
# Add license header to the generated bindata.go file
addlicense -c "SAP SE" ./pkg/ui/bindata.go