-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (34 loc) · 1.87 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
.PHONY: all clean test
COMPOSE_RUN = docker compose run --rm --quiet-pull
all: update-translations update-licenses verify-translations verify-workflows verify-dependabot verify-make verify-editorconfig verify-swiftlint verify-no-changes
help:
@echo 'This Makefile contains generation (update-* targets) and verification (verify-* targets) targets. Run all updates and verifications with `make all`.'
clean:
docker compose down --rmi all --remove-orphans
update-translations:
$(COMPOSE_RUN) lane translations generate -i resources/translations/translations.csv -o Powercast/Assets/Translations.swift -t ios -m 3 -k 1 \
-c "4 Powercast/Assets/Translations/da.lproj/Localizable.strings" \
-c "4 Powercast/Assets/Translations/da.lproj/InfoPlist.strings" \
-c "3 Powercast/Assets/Translations/en-GB.lproj/Localizable.strings" \
-c "3 Powercast/Assets/Translations/en-GB.lproj/InfoPlist.strings" \
-c "3 Powercast/Assets/Translations/Base.lproj/Localizable.strings" \
-c "3 Powercast/Assets/Translations/Base.lproj/InfoPlist.strings"
update-licenses:
$(COMPOSE_RUN) builder sh scripts/update-licenses.sh
# does not work yet - see https://github.com/krzysztofzablocki/Sourcery/issues/1382
# update-sourcery:
# $(COMPOSE_RUN) sourcery
verify-translations:
$(COMPOSE_RUN) builder sh -x scripts/verify-translations.sh
verify-workflows:
$(COMPOSE_RUN) jsonschema sh -ec 'find .github/workflows -type f -name \*.yml | xargs -I {} echo check-jsonschema --builtin-schema vendor.github-workflows {} | sh -ex'
verify-dependabot:
$(COMPOSE_RUN) jsonschema check-jsonschema --builtin-schema vendor.dependabot .github/dependabot.yml
verify-make:
$(COMPOSE_RUN) makelint
verify-editorconfig:
$(COMPOSE_RUN) eclint
verify-swiftlint:
$(COMPOSE_RUN) swiftlint swiftlint --strict --config .swiftlint.ci.yml --config .swiftlint.yml
verify-no-changes:
$(COMPOSE_RUN) builder sh scripts/verify-no-changes.sh