You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,16 @@
1
1
.DEFAULT_GOAL := help
2
2
3
+
.PHONY: check
4
+
check: ## Checks the environment before running any command
5
+
@[[ $(shell docker ps -aq | wc -l)== 0 ]] ||\
6
+
(echo "You have to remove any containers before running the tests! Please run 'docker rm -f \`docker ps -aq\`' to remove all the existing containers."&&exit 1)
7
+
3
8
.PHONY: images
4
9
images: ## Build the test images
5
10
docker build server -t test-server
6
11
7
12
.PHONY: test
8
-
test: images ## Run tests
13
+
test: check images ## Run tests
9
14
GOPRIVATE=github.com/compose-spec/compatibility-test-suite go test ./... -v
0 commit comments