From e3b002abd97eac761aba1181ddc048b50ab60fc8 Mon Sep 17 00:00:00 2001 From: Bastian Kersting Date: Sun, 24 Nov 2024 15:13:50 +0100 Subject: [PATCH] Add starting test servers to the `make test-all` target --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fed0fc5f..00771721 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -.PHONY: build test-fast test-all clippy format checks pipeline +.PHONY: build test-fast run-test-servers test-all clippy format checks pipeline -build: +build: @cargo build --verbose --all-features keys: @@ -9,8 +9,13 @@ keys: test-fast: keys @cargo test --verbose --package rust_socketio --lib -- engineio::packet && cargo test --verbose --package rust_socketio --lib -- socketio::packet -test-all: keys +run-test-servers: + cd ci && docker build -t test_suite:latest . && cd .. + docker run -d -p 4200:4200 -p 4201:4201 -p 4202:4202 -p 4203:4203 -p 4204:4204 -p 4205:4205 -p 4206:4206 --name socketio_test test_suite:latest + +test-all: keys run-test-servers @cargo test --verbose --all-features + docker stop socketio_test clippy: @cargo clippy --verbose --all-features