Skip to content

Commit

Permalink
tests: replace docker-compose with docker compose
Browse files Browse the repository at this point in the history
docker-compose is deprecated
  • Loading branch information
sni committed Aug 28, 2024
1 parent 9a9ec91 commit 0c3a3ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions t/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ help:
@echo "make prepare|update|test"

update:
docker-compose pull
docker compose pull
for IMG in $$(grep FROM Dockerfile.* | awk '{ print $$2 }' | sort -u); do docker pull $$IMG; done

clean:
docker-compose kill
docker-compose rm -f
docker compose kill
docker compose rm -f
-docker network prune -f

prepare:
docker-compose build
docker-compose up --remove-orphans --scale base=0 -d
docker compose build
docker compose up --remove-orphans -d
docker ps
@while read LOGLINE; do \
echo "$${LOGLINE}"; \
[[ "$${LOGLINE}" == *"connect via"*":6901/?password="* ]] && exit 0; \
[[ "$${LOGLINE}" == *"ERROR"* ]] && exit 1; \
done < <(docker-compose logs -f)
done < <(docker compose logs -f)

test: prepare
perl -MExtUtils::Command::MM -e "test_harness(1)" *.t

0 comments on commit 0c3a3ca

Please sign in to comment.