File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ test-integration:
1313
1414# # Start dependencies for integration tests or local dev via docker-compose up
1515start-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)
1717
1818# # Stop dependencies for integration tests or local dev via docker-compose down
1919stop-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)
2121
2222.PHONY : test-integration start-deps stop-deps
You can’t perform that action at this time.
0 commit comments