-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
27 lines (19 loc) · 813 Bytes
/
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
.PHONY: all_checks venv_up hardcode_string_check missing_translation_check test test-ci local
all_checks: venv_up hardcode_string_check missing_translation_check
# Variables
PYTHON := python3
ROCKSBIN := $(HOME)/.luarocks/bin
# Target for running the hardcoded string checker
hardcode_string_check:
@.venv/bin/python .scripts/hardcode_string_check.py
# Target for running the missing translation checker
missing_translation_check:
@.venv/bin/python .scripts/missing_translation_check.py
venv_up:
@if [ ! -d ".venv" ]; then $(PYTHON) -m venv ./.venv; fi
test:
@rm -rf luacov-html && rm -rf luacov.*out && $(ROCKSBIN)/busted --coverage && $(ROCKSBIN)/luacov
test-ci:
@rm -rf luacov-html && rm -rf luacov.*out && $(ROCKSBIN)/busted --coverage -o=TAP && $(ROCKSBIN)/luacov
local:
@.release/local.sh -D