-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Github Actions no longer recognises 'docker-compose'.
- Loading branch information
Showing
1 changed file
with
15 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
IOGT_TEST_PARALLEL ?= 1 | ||
|
||
# Build the project | ||
build: | ||
docker-compose build | ||
docker compose build | ||
down: | ||
docker-compose down | ||
docker compose down | ||
makemigrations: | ||
docker-compose run django python manage.py makemigrations | ||
docker compose run django python manage.py makemigrations | ||
migrate: | ||
docker-compose run django python manage.py migrate | ||
docker compose run django python manage.py migrate | ||
setup: | ||
make migrate | ||
make update_elasticsearch_index | ||
up: | ||
docker-compose up | ||
docker compose up | ||
update_elasticsearch_index: | ||
docker-compose run django python manage.py update_index | ||
docker compose run django python manage.py update_index | ||
compile-requirements: | ||
docker-compose -f docker-compose.builder.yml run --rm builder | ||
docker compose -f docker-compose.builder.yml run --rm builder | ||
test: | ||
docker-compose -f docker-compose.test.yml up --build -d | ||
docker-compose -f docker-compose.test.yml exec -T django python manage.py collectstatic --noinput | ||
docker-compose -f docker-compose.test.yml exec -T django python manage.py test --noinput --parallel $(IOGT_TEST_PARALLEL) | ||
docker-compose -f docker-compose.test.yml down --remove-orphans | ||
docker compose -f docker-compose.test.yml up --build -d | ||
docker compose -f docker-compose.test.yml exec -T django python manage.py collectstatic --noinput | ||
docker compose -f docker-compose.test.yml exec -T django python manage.py test --noinput --parallel $(IOGT_TEST_PARALLEL) | ||
docker compose -f docker-compose.test.yml down --remove-orphans | ||
selenium-test: selenium-up selenium-local selenium-down | ||
selenium-up: | ||
docker-compose -f docker-compose.selenium.yml up --build -d --scale chrome=$(IOGT_TEST_PARALLEL) | ||
docker-compose -f docker-compose.selenium.yml exec -T django python manage.py collectstatic --noinput | ||
docker compose -f docker-compose.selenium.yml up --build -d --scale chrome=$(IOGT_TEST_PARALLEL) | ||
docker compose -f docker-compose.selenium.yml exec -T django python manage.py collectstatic --noinput | ||
selenium-local: | ||
docker-compose -f docker-compose.selenium.yml exec -T django python manage.py test selenium_tests --parallel $(IOGT_TEST_PARALLEL) | ||
docker compose -f docker-compose.selenium.yml exec -T django python manage.py test selenium_tests --parallel $(IOGT_TEST_PARALLEL) | ||
selenium-down: | ||
docker-compose -f docker-compose.selenium.yml down --remove-orphans | ||
docker compose -f docker-compose.selenium.yml down --remove-orphans |