Skip to content

Commit

Permalink
Use Docker Compose version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 8, 2024
1 parent 9ce25db commit 050f01a
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ else
DOCKER_VERSION = $(DOCKER_VERSION_ACTUAL)
endif

#Get the docker-compose version (must use the same version for acceptance tests)
DOCKER_COMPOSE_VERSION_ACTUAL = $(shell docker-compose version --short)
ifeq ($(DOCKER_COMPOSE_VERSION_ACTUAL),)
DOCKER_COMPOSE_VERSION = 1.8.0
else
DOCKER_COMPOSE_VERSION = $(DOCKER_COMPOSE_VERSION_ACTUAL)
endif
DOCKER_COMPOSE_VERSION = 1.29.2

all: acceptance

Expand All @@ -34,8 +28,8 @@ build:

.PHONY: acceptance
acceptance: build
(cd acceptance_tests/ && docker-compose down)
(cd acceptance_tests/ && docker-compose build)
(cd acceptance_tests/ && docker-compose up -d)
(cd acceptance_tests/ && docker-compose exec -T acceptance py.test -vv --color=yes --junitxml /tmp/junitxml/results.xml)
(cd acceptance_tests/ && docker-compose down)
(cd acceptance_tests/ && docker compose down)
(cd acceptance_tests/ && docker compose build)
(cd acceptance_tests/ && docker compose up -d)
(cd acceptance_tests/ && docker compose exec -T acceptance py.test -vv --color=yes --junitxml /tmp/junitxml/results.xml)
(cd acceptance_tests/ && docker compose down)

0 comments on commit 050f01a

Please sign in to comment.