-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
45 lines (33 loc) · 1.21 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
include .env
init:
poetry install
build:
poetry build
publish:
poetry publish
flake8:
poetry run flake8 gn2pg
black:
poetry run black gn2pg
isort:
poetry run isort gn2pg
pylint:
poetry run pylint gn2pg
trans-update-po:
pygettext3 -d base -o gn2pg/locale/gn2pg.pot gn2pg
msgmerge --update gn2pg/locale/fr_FR/LC_MESSAGES/gn2pg.po gn2pg/locale/gn2pg.pot
trans-gen-mo:
msgfmt -o gn2pg/locale/fr_FR/LC_MESSAGES/gn2pg.mo gn2pg/locale/fr_FR/LC_MESSAGES/gn2pg.po
test-start-db:
docker run --name dbtestgn2pg --rm -e POSTGRES_USER=dbuser -e POSTGRES_PASSWORD=dbpass -p 5234:5432 -d postgis/postgis:latest
test: # non-functional
# @echo ""
# @echo "Waiting for database \"ready for connections\""
# @while [ -z "$$(docker logs dbtestgn2pg 2>&1 | grep -o "database system is ready to accept connections")" ]; \
# do \
# echo "test";sleep 5; \
# done
# @echo "Database Ready for connections!"
# docker logs dbtestgn2pg | grep "database system is ready to accept connections"
poetry install
poetry run pytest --user=${GEONATURE_USER} --password=${GEONATURE_PASSWORD} --url=${GEONATURE_URL} --db-user=dbuser --db-password=dbpass --db-port=5234 --export-id=${GEONATURE_EXPORT_ID} --nb-threads=${GEONATURE_NB_THREADS} tests