Skip to content

Commit

Permalink
ci: fix docker compose usage in tests (#154)
Browse files Browse the repository at this point in the history
* ci: use modern docker compose cmd

* test(integration): set container name for tomcat
  • Loading branch information
DavSanchez authored Oct 18, 2024
1 parent 90dbc00 commit 8eb6711
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ integration-test:
echo "Error: missing required env-var: NRJMX_VERSION\n" ;\
exit 1 ;\
fi
@docker-compose -f test/integration/docker-compose.yml up -d --build
@go test -v -tags=integration ./test/integration/. -count=1 ; (ret=$$?; docker-compose -f test/integration/docker-compose.yml down && exit $$ret)
@docker compose -f test/integration/docker-compose.yml up -d --build
@go test -v -tags=integration ./test/integration/. -count=1 ; (ret=$$?; docker compose -f test/integration/docker-compose.yml down && exit $$ret)

# Include thematic Makefiles
include $(CURDIR)/build/ci.mk
Expand Down
1 change: 1 addition & 0 deletions test/integration/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: '3.1'

services:
tomcat:
container_name: integration_tomcat_1
image: tomcat:8.5-alpine
environment:
CATALINA_OPTS: |
Expand Down

0 comments on commit 8eb6711

Please sign in to comment.