Skip to content

Commit 8532fd7

Browse files
author
Alade Yessoufou
committed
build: add integration test targets to Makefile
- Add test-integration target for Docker-based testing - Add test-integration-local for local testing without containers - Add test-clean to cleanup test containers - Add test-list to list available test phases
1 parent dae7365 commit 8532fd7

1 file changed

Lines changed: 26 additions & 6 deletions

File tree

Makefile

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
.PHONY: help build clean install test release
1+
.PHONY: help build clean install test test-integration test-integration-local test-clean test-list release
22

33
help:
44
@echo "ShipNode Build System"
55
@echo ""
66
@echo "Available targets:"
7-
@echo " make build - Build distributable installer"
8-
@echo " make clean - Remove dist directory"
9-
@echo " make install - Install locally from source"
10-
@echo " make test - Test the installer"
11-
@echo " make release - Create and publish a new release"
7+
@echo " make build - Build distributable installer"
8+
@echo " make clean - Remove dist directory"
9+
@echo " make install - Install locally from source"
10+
@echo " make test - Test the installer"
11+
@echo " make test-integration - Run integration tests with Docker"
12+
@echo " make test-integration-local - Run local tests only (no container)"
13+
@echo " make test-clean - Clean up leftover test containers"
14+
@echo " make test-list - List available integration test phases"
15+
@echo " make release - Create and publish a new release"
1216

1317
build:
1418
@./build-dist.sh
@@ -26,6 +30,22 @@ test: build
2630
@echo "Testing installer..."
2731
@bash dist/shipnode-installer.sh
2832

33+
test-integration: build
34+
@echo "Running integration tests with Docker..."
35+
@./scripts/test-docker.sh --phases 1,2,3,4,5,6,7,8 2>&1
36+
37+
test-integration-local: build
38+
@echo "Running local integration tests (no container required)..."
39+
@./scripts/test-docker.sh --local
40+
41+
test-clean:
42+
@echo "Cleaning up test containers..."
43+
@docker ps -a --format '{{.Names}}' | grep "^shipnode-test-" | xargs -r docker rm -f 2>/dev/null || true
44+
@echo "✓ Test environments cleaned up"
45+
46+
test-list:
47+
@./scripts/test-docker.sh --list
48+
2949
release:
3050
@echo "Creating release..."
3151
@# Extract version from lib/core.sh

0 commit comments

Comments
 (0)