File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ test-integration:
13
13
14
14
# # Start dependencies for integration tests or local dev via docker-compose up
15
15
start-deps :
16
- @ test ! -f $(INTEGRATION_DOCKER_COMPOSE ) || docker-compose - p " $( shell basename $$ PWD) " -f $(INTEGRATION_DOCKER_COMPOSE ) up -d
16
+ test ! -f $(INTEGRATION_DOCKER_COMPOSE ) || (command -v docker-compose > /dev/null 2>&1 && docker-compose - p " $( shell basename $$ PWD) " -f $( INTEGRATION_DOCKER_COMPOSE) up -d || docker compose -p " $( shell basename $$ PWD ) " -f $( INTEGRATION_DOCKER_COMPOSE ) up -d)
17
17
18
18
# # Stop dependencies for integration tests or local dev via docker-compose down
19
19
stop-deps :
20
- @test ! -f $(INTEGRATION_DOCKER_COMPOSE ) || docker-compose - p " $( shell basename $$ PWD) " -f $(INTEGRATION_DOCKER_COMPOSE ) down
20
+ @test ! -f $(INTEGRATION_DOCKER_COMPOSE ) || (command -v docker-compose > /dev/null 2>&1 && docker-compose - p " $( shell basename $$ PWD) " -f $( INTEGRATION_DOCKER_COMPOSE) down || docker compose -p " $( shell basename $$ PWD ) " -f $( INTEGRATION_DOCKER_COMPOSE ) down)
21
21
22
22
.PHONY : test-integration start-deps stop-deps
You can’t perform that action at this time.
0 commit comments