Skip to content

Commit e3b002a

Browse files
committed
Add starting test servers to the make test-all target
1 parent 9fc65cd commit e3b002a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Makefile

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.PHONY: build test-fast test-all clippy format checks pipeline
1+
.PHONY: build test-fast run-test-servers test-all clippy format checks pipeline
22

3-
build:
3+
build:
44
@cargo build --verbose --all-features
55

66
keys:
@@ -9,8 +9,13 @@ keys:
99
test-fast: keys
1010
@cargo test --verbose --package rust_socketio --lib -- engineio::packet && cargo test --verbose --package rust_socketio --lib -- socketio::packet
1111

12-
test-all: keys
12+
run-test-servers:
13+
cd ci && docker build -t test_suite:latest . && cd ..
14+
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
15+
16+
test-all: keys run-test-servers
1317
@cargo test --verbose --all-features
18+
docker stop socketio_test
1419

1520
clippy:
1621
@cargo clippy --verbose --all-features

0 commit comments

Comments
 (0)