diff --git a/hack/Makefile b/hack/Makefile index f9e0f962cb..0d10f13f38 100644 --- a/hack/Makefile +++ b/hack/Makefile @@ -218,6 +218,26 @@ upgrade-requirements-ss: ## Run pip-upgrade for Storage Service --entrypoint bash archivematica-storage-service \ -c "make pip-upgrade" +define amauat_make + docker compose \ + -f docker-compose.yml \ + -f docker-compose.acceptance-tests.yml \ + run \ + --workdir /src \ + -e XDG_CACHE_HOME=/tmp/pip-cache \ + --rm \ + --no-deps \ + --user $(CALLER_UID):$(CALLER_GID) \ + --entrypoint bash archivematica-acceptance-tests \ + -c "make $(1)" +endef + +compile-requirements-amauat: test-at-build ## Run pip-compile for AMAUATs + $(call amauat_make,pip-compile) + +upgrade-requirements-amauat: test-at-build ## Run pip-upgrade for AMAUATs + $(call amauat_make,pip-upgrade) + db: ## Connect to the MySQL server using the CLI. docker compose exec mysql mysql -hlocalhost -uroot -p12345 diff --git a/hack/docker-compose.acceptance-tests.yml b/hack/docker-compose.acceptance-tests.yml index 81233e58b4..a868bd7f2a 100644 --- a/hack/docker-compose.acceptance-tests.yml +++ b/hack/docker-compose.acceptance-tests.yml @@ -13,6 +13,7 @@ services: security_opt: - "seccomp:unconfined" volumes: + - "./submodules/archivematica-acceptance-tests/:/src/" - "/dev/shm:/dev/shm" - "./submodules/archivematica-sampledata:/home/archivematica/archivematica-sampledata:ro" - "archivematica_pipeline_data:/var/archivematica/sharedDirectory:ro"