-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better CircleCI setup with dedicated jobs
- Loading branch information
1 parent
51ae92c
commit 0817a3c
Showing
5 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,44 @@ | ||
version: 2.1 | ||
|
||
executors: | ||
default: | ||
docker: | ||
- image: "krieselreihe/docker-cpp-cmake:1.0.0" | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: "krieselreihe/docker-cpp-cmake:0.1.0" | ||
executor: default | ||
steps: | ||
- checkout | ||
- run: | ||
name: Create build files | ||
command: 'cmake -DCMAKE_BUILD_TYPE=Release -B build' | ||
command: | | ||
cmake -DCMAKE_BUILD_TYPE=Release -B build | ||
- run: | ||
name: Build application | ||
command: 'cmake --build build' | ||
command: | | ||
cmake --build build | ||
- persist_to_workspace: | ||
root: . | ||
paths: ['build'] | ||
test: | ||
executor: default | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
name: Unit testing | ||
command: 'cd build/src/tests && CTEST_OUTPUT_ON_FAILURE=TRUE ctest' | ||
command: | | ||
cd build/src/tests | ||
CTEST_OUTPUT_ON_FAILURE=TRUE ctest --output-junit ctest-report.xml | ||
- store_test_results: | ||
path: build/src | ||
|
||
workflows: | ||
version: 2 | ||
build-and-test: | ||
jobs: | ||
- build | ||
- test: | ||
requires: | ||
- build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters