-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1796 from watchdogpolska/dev_ext
v1.5.19
- Loading branch information
Showing
20 changed files
with
249 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,40 +3,40 @@ TEST?=feder | |
.PHONY: docs | ||
|
||
clean: | ||
docker-compose down | ||
docker compose down | ||
|
||
regenerate_frontend: | ||
docker-compose run web python manage.py collectstatic --noinput | ||
docker-compose up gulp | ||
docker compose run web python manage.py collectstatic --noinput | ||
docker compose up gulp | ||
|
||
makemessages: | ||
docker-compose run web python manage.py makemessages --ignore=htmlcov --all | ||
docker compose run web python manage.py makemessages --ignore=htmlcov --all | ||
|
||
gulp: regenerate_frontend | ||
|
||
build: | ||
docker-compose build web | ||
docker compose build web | ||
|
||
start: wait_mysql | ||
docker-compose up | ||
docker compose up --remove-orphans | ||
|
||
test: | ||
docker-compose run web coverage run manage.py test --keepdb --verbosity=2 ${TEST} | ||
docker compose run web coverage run manage.py test --keepdb --verbosity=2 ${TEST} | ||
|
||
coverage_html: | ||
docker-compose run web coverage html | ||
docker compose run web coverage html | ||
|
||
coverage_send: | ||
docker-compose run -e GITHUB_ACTIONS -e GITHUB_REF -e GITHUB_SHA -e GITHUB_HEAD_REF -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -e GITHUB_TOKEN -e COVERALLS_REPO_TOKEN web coveralls | ||
docker compose run -e GITHUB_ACTIONS -e GITHUB_REF -e GITHUB_SHA -e GITHUB_HEAD_REF -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -e GITHUB_TOKEN -e COVERALLS_REPO_TOKEN web coveralls | ||
|
||
wait_web: wait_mysql | ||
|
||
wait_mysql: | ||
docker-compose up -d db | ||
docker-compose run web bash -c 'wait-for-it -t 30 db:3306' || (docker-compose logs db; exit -1) | ||
docker compose up -d db | ||
docker compose run web bash -c 'wait-for-it -t 30 db:3306' || (docker compose logs db; exit -1) | ||
|
||
migrate: | ||
docker-compose run web python manage.py migrate | ||
docker compose run web python manage.py migrate | ||
|
||
lint: # lint currently staged files | ||
pre-commit run | ||
|
@@ -45,19 +45,19 @@ lint-all: # lint all files in repository | |
pre-commit run --all-files | ||
|
||
check: wait_mysql | ||
docker-compose run web python manage.py makemigrations --check | ||
docker compose run web python manage.py makemigrations --check | ||
|
||
migrations: wait_mysql | ||
docker-compose run web python manage.py makemigrations | ||
docker compose run web python manage.py makemigrations | ||
|
||
settings: | ||
docker-compose run web python manage.py diffsettings | ||
docker compose run web python manage.py diffsettings | ||
|
||
docs: | ||
docker-compose run web sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html | ||
docker compose run web sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html | ||
|
||
importterc: | ||
docker-compose run web sh -c 'curl http://cdn.files.jawne.info.pl/public_html/2017/12/03_05_43_05/TERC_Urzedowy_2017-12-03.xml --output /tmp/TERC.xml && python manage.py load_terc --input /tmp/TERC.xml' | ||
docker compose run web sh -c 'curl http://cdn.files.jawne.info.pl/public_html/2017/12/03_05_43_05/TERC_Urzedowy_2017-12-03.xml --output /tmp/TERC.xml && python manage.py load_terc --input /tmp/TERC.xml' | ||
|
||
createsuperuser: # polyfill for django <3. On django 3+ you can use the `DJANGO_SUPERUSER_PASSWORD` env variable. | ||
docker-compose run web python manage.py createsuperuserwithpassword --username root --email [email protected] --password root --noinput | ||
docker compose run web python manage.py createsuperuserwithpassword --username root --email [email protected] --password root --noinput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.