-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmakefile
More file actions
56 lines (43 loc) · 1.76 KB
/
makefile
File metadata and controls
56 lines (43 loc) · 1.76 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
integration-tests:
python3 -m unittest discover -s tests/integration -f
integration-tests_verbose:
python3 -m unittest discover -s tests/integration -f -v
test:
python3 -m unittest discover -s tests -f
unit-tests:
python3 -m unittest discover -s tests/unit -f
unit-tests-verbose:
python3 -m unittest discover -s tests/unit -f -v
unit-tests-all:
python3 -m unittest discover -s tests/unit
docker-up:
docker-compose up --build
docker-powermon-dev-up:
docker compose -f docker-compose.development.yaml up --build
git-tag-release:
@./make_version.sh
@echo Creating a tag for version: `awk '/^version/ {print $$3}' pyproject.toml`
@echo Pushing version changes to git
git add powermon/libs/version.py
git commit -m "remove -dev from version"
git push
@git tag `awk '/^version/ {print substr($$3, 2, length($$3)-2)}' pyproject.toml`
@git push origin --tags
@echo "Now go to github and create a release for the latest tag" `awk '/^version/ {print substr($$3, 2, length($$3)-2)}' pyproject.toml`
@echo Bumping version..
@poetry version patch # major, minor, patch
@echo Adding '-dev' to version in git
@./make_version_dev.sh
@echo Pushing version changes to git
git add powermon/libs/version.py pyproject.toml
git commit -m "Update versions"
git push
mqtt-docker-start:
docker run --rm --network=host -v ./docker/mosquitto/config:/mosquitto/config eclipse-mosquitto
transl-extract:
xgettext -d powermon -o powermon/locale/powermon.pot -L python -f files_to_translate.txt
transl-gen-en:
msginit -l en_US.UTF8 -o powermon/locale/en/LC_MESSAGES/powermon.po -i powermon/locale/powermon.pot --no-translator
transl-compile:
msgfmt -o powermon/locale/en/LC_MESSAGES/powermon.mo powermon/locale/en/LC_MESSAGES/powermon.po
transl: transl-extract transl-gen-en transl-compile