This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
92 lines (92 loc) · 3.03 KB
/
docker-compose.test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: "3.7"
services:
base: &base
build:
context: .
dockerfile: docker/Dockerfile
image: star-network-test-base
stdin_open: true
tty: true
volumes:
- ./.git:/var/app/.git
- ./app:/var/app/app
- ./cmake:/var/app/cmake
- ./docker:/var/app/docker
- ./lib:/var/app/lib
- ./test:/var/app/test
- ./CMakeLists.txt:/var/app/CMakeLists.txt
- ./conanfile.txt:/var/app/conanfile.txt
- cmake_build_test:/var/app/cmake-build-test
- cmake_build_test_asan:/var/app/cmake-build-test-asan
- cmake_build_test_lsan:/var/app/cmake-build-test-lsan
- cmake_build_test_msan:/var/app/cmake-build-test-msan
- cmake_build_test_tsan:/var/app/cmake-build-test-tsan
- conan:/root/.conan
all_tests:
<<: *base
container_name: star-network-all-test
environment:
- BUILD_DIR=/var/app/cmake-build-test
- CATCH_REPORTER=console
- CMAKE_ADDITIONAL_OPTIONS=-DVERBOSE_LOGGING=ON
- CMAKE_BUILD_TYPE=Debug
command: >
bash -c "/bin/bash ./docker/script/build/build_all.bash &&
/bin/bash ./docker/script/test/run_all_tests.bash"
all_tests_asan:
<<: *base
container_name: star-network-all-test-with-asan
environment:
- BUILD_DIR=/var/app/cmake-build-test-asan
- CATCH_REPORTER=console
- CMAKE_ADDITIONAL_OPTIONS=-DVERBOSE_LOGGING=ON
- CMAKE_BUILD_TYPE=Debug
command: >
bash -c "/bin/bash ./docker/script/build/build_all_asan.bash &&
/bin/bash ./docker/script/test/run_all_tests.bash"
all_tests_lsan:
<<: *base
container_name: star-network-all-test-with-lsan
environment:
- BUILD_DIR=/var/app/cmake-build-test-lsan
- CATCH_REPORTER=console
- CMAKE_ADDITIONAL_OPTIONS=-DVERBOSE_LOGGING=ON
- CMAKE_BUILD_TYPE=Debug
command: >
bash -c "/bin/bash ./docker/script/build/build_all_lsan.bash &&
/bin/bash ./docker/script/test/run_all_tests.bash"
# all_tests_msan:
# <<: *base
# container_name: star-network-all-test-with-msan
# environment:
# - BUILD_DIR=/var/app/cmake-build-test-msan
# - CATCH_REPORTER=console
# - CMAKE_ADDITIONAL_OPTIONS=-DVERBOSE_LOGGING=ON
# - CMAKE_BUILD_TYPE=Debug
# command: >
# bash -c "/bin/bash ./docker/script/build/build_all_msan.bash &&
# /bin/bash ./docker/script/test/run_all_tests.bash"
all_tests_tsan:
<<: *base
container_name: star-network-all-test-with-tsan
environment:
- BUILD_DIR=/var/app/cmake-build-test-tsan
- CATCH_REPORTER=console
- CMAKE_ADDITIONAL_OPTIONS=-DVERBOSE_LOGGING=ON
- CMAKE_BUILD_TYPE=Debug
command: >
bash -c "/bin/bash ./docker/script/build/build_all_tsan.bash &&
/bin/bash ./docker/script/test/run_all_tests.bash"
volumes:
cmake_build_test:
driver: local
cmake_build_test_asan:
driver: local
cmake_build_test_lsan:
driver: local
cmake_build_test_msan:
driver: local
cmake_build_test_tsan:
driver: local
conan:
driver: local