Skip to content

Commit

Permalink
Add "docker compose" support (#997)
Browse files Browse the repository at this point in the history
Co-authored-by: Gabor Bella <[email protected]>
  • Loading branch information
gaborbella-gutti and Gabor Bella authored Sep 6, 2024
1 parent f642481 commit f751db3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

DOCKER_COMPOSE_FILE=_tests/integration/local_docker_test_environment/docker-compose.yml
SRC_DIR_IN_GOPATH=/bitrise/src
DOCKERCOMPOSE=$(shell which docker-compose 2> /dev/null || echo '')

docker-test: setup-test-environment
docker exec -it bitrise-main-container bash -c "export INTEGRATION_TEST_BINARY_PATH=\$$PWD/bitrise-cli; go test ./_tests/integration -tags linux_only"
Expand All @@ -11,4 +12,8 @@ setup-test-environment: build-main-container
docker exec -it bitrise-main-container bash -c "go build -o bitrise-cli"

build-main-container:
docker-compose -f $(DOCKER_COMPOSE_FILE) up --build -d
@if [ "$$DOCKERCOMPOSE" ]; then \
docker-compose -f $(DOCKER_COMPOSE_FILE) up --build -d; \
else \
docker compose -f $(DOCKER_COMPOSE_FILE) up --build -d; \
fi

0 comments on commit f751db3

Please sign in to comment.