mirror of https://github.com/docker/compose.git
Merge pull request #10403 from milas/fix-e2e-win
test: fix e2e commands on Windows
This commit is contained in:
commit
cc70851bc8
|
@ -179,7 +179,11 @@ jobs:
|
||||||
name: Test plugin mode
|
name: Test plugin mode
|
||||||
if: ${{ matrix.mode == 'plugin' }}
|
if: ${{ matrix.mode == 'plugin' }}
|
||||||
run: |
|
run: |
|
||||||
make e2e-compose
|
rm -rf ./covdatafiles
|
||||||
|
mkdir ./covdatafiles
|
||||||
|
make e2e-compose GOCOVERDIR=covdatafiles
|
||||||
|
go tool covdata textfmt -i=covdatafiles -o=coverage.out
|
||||||
|
|
||||||
-
|
-
|
||||||
name: Test standalone mode
|
name: Test standalone mode
|
||||||
if: ${{ matrix.mode == 'standalone' }}
|
if: ${{ matrix.mode == 'standalone' }}
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -23,6 +23,7 @@ ifeq ($(OS),Windows_NT)
|
||||||
else
|
else
|
||||||
DETECTED_OS = $(shell uname -s)
|
DETECTED_OS = $(shell uname -s)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(DETECTED_OS),Linux)
|
ifeq ($(DETECTED_OS),Linux)
|
||||||
MOBY_DOCKER=/usr/bin/docker
|
MOBY_DOCKER=/usr/bin/docker
|
||||||
endif
|
endif
|
||||||
|
@ -71,10 +72,7 @@ install: binary
|
||||||
|
|
||||||
.PHONY: e2e-compose
|
.PHONY: e2e-compose
|
||||||
e2e-compose: ## Run end to end local tests in plugin mode. Set E2E_TEST=TestName to run a single test
|
e2e-compose: ## Run end to end local tests in plugin mode. Set E2E_TEST=TestName to run a single test
|
||||||
rm -rf covdatafiles
|
go test $(TEST_FLAGS) -count=1 ./pkg/e2e
|
||||||
mkdir covdatafiles
|
|
||||||
GOCOVERDIR=covdatafiles go test $(TEST_FLAGS) -count=1 ./pkg/e2e
|
|
||||||
go tool covdata textfmt -i=covdatafiles -o=coverage.out
|
|
||||||
|
|
||||||
.PHONY: e2e-compose-standalone
|
.PHONY: e2e-compose-standalone
|
||||||
e2e-compose-standalone: ## Run End to end local tests in standalone mode. Set E2E_TEST=TestName to run a single test
|
e2e-compose-standalone: ## Run End to end local tests in standalone mode. Set E2E_TEST=TestName to run a single test
|
||||||
|
|
Loading…
Reference in New Issue