Skip to content

Commit f3d3362

Browse files
Merge pull request #23 from testcontainers/building_the_project
Document building the project + Support skipping demos
2 parents 4ba7f1b + ff53c43 commit f3d3362

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}/testcontainers-c)
77

88
add_subdirectory(testcontainers-c)
99
add_subdirectory(modules)
10-
add_subdirectory(demo)
10+
if(NOT DEFINED SKIP_DEMOS)
11+
add_subdirectory(demo)
12+
endif()

CONTRIBUTING.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ To propose a code patch, just submit a pull request to the repository.
1818
No need to create a GitHub issue if you want to suggest a simple patch,
1919
pull requests are more than enough for it.
2020

21+
## Building the project
22+
23+
You need CMake 3.16.3 and Golang 1.19+.
24+
At the moment there are not so many configuration flags, so the build is straightforward:
25+
26+
```shell
27+
cmake .
28+
cmake --build .
29+
ctest --output-on-failure
30+
```
31+
32+
To skip the demo builds and tests, use the `SKIP_DEMOS` variable:
33+
34+
```shell
35+
cmake -DSKIP_DEMOS=true .
36+
```
37+
2138
## Codestyle
2239

2340
### Public APIs

0 commit comments

Comments
 (0)