9acd9273c1
Motivation: We should add some command to be able to run all tests with leak detection enabled. This will then be used on the CI during PR builds. Modifications: Add new docker-compose config to run with leak-detection enabled. Result: Easy way to enable leak detection while running tests via docker.
40 lines
900 B
YAML
40 lines
900 B
YAML
version: "3"
|
|
|
|
services:
|
|
|
|
runtime-setup:
|
|
image: netty:default
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.centos
|
|
|
|
common: &common
|
|
image: netty:default
|
|
depends_on: [runtime-setup]
|
|
volumes:
|
|
- ~/.ssh:/root/.ssh
|
|
- ~/.gnupg:/root/.gnupg
|
|
- ..:/code
|
|
working_dir: /code
|
|
|
|
test-leak:
|
|
<<: *common
|
|
command: /bin/bash -cl "./mvnw -Pleak clean install -Dio.netty.testsuite.badHost=netty.io"
|
|
|
|
test:
|
|
<<: *common
|
|
command: /bin/bash -cl "./mvnw clean install -Dio.netty.testsuite.badHost=netty.io"
|
|
|
|
test-boringssl-static:
|
|
<<: *common
|
|
command: /bin/bash -cl "./mvnw clean install -Dio.netty.testsuite.badHost=netty.io -Dtcnative.artifactId=netty-tcnative-boringssl-static"
|
|
|
|
shell:
|
|
<<: *common
|
|
volumes:
|
|
- ~/.ssh:/root/.ssh
|
|
- ~/.gnupg:/root/.gnupg
|
|
- ..:/code
|
|
- ~/.m2:/root/.m2
|
|
entrypoint: /bin/bash
|