forked from ninja-build/ninja
-
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.
add test result display for circleCI dashboard
Added ctest and performance test. Try to show test on CI/CD dashboard, followed the instruction, however we could not get it working somehow.
- Loading branch information
1 parent
5e73bbb
commit 75a9412
Showing
7 changed files
with
43 additions
and
2,668 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,45 +1,54 @@ | ||
|
||
version: 2.1 | ||
executors: | ||
docker-executor: | ||
docker: | ||
- image: cimg/base:stable | ||
jobs: | ||
build: | ||
executor: docker-executor | ||
build-test: | ||
docker: | ||
- image: cimg/base:current | ||
steps: | ||
# Checkout the code as the first step. | ||
- checkout | ||
- run: | ||
name: Installing Dependencies | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get install -y clang-tidy | ||
name: InstallPreq | ||
command: | | ||
echo "Installing clang-tidy" | ||
sudo apt-get update && sudo apt-get install -y clang-tidy | ||
echo "Installed" | ||
- run: | ||
name: Building Project | ||
command: | | ||
cmake -B cicd-build | ||
cmake --build cicd-build | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- cicd-build | ||
test: | ||
executor: docker-executor | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: . | ||
name: Build | ||
command: | | ||
echo "Building" | ||
mkdir build && cd build | ||
cmake -S .. | ||
make -j $(nproc) | ||
cd ../ | ||
echo "Built" | ||
- run: | ||
name: ninjaTest | ||
command: | | ||
cd build | ||
./ninja_test --gtest_output=XML | ||
echo "Testing Done" | ||
- store_test_results: | ||
path: build | ||
- run: | ||
name: Run Tests | ||
name: ctest | ||
command: | | ||
echo "Start Testing" | ||
cd build | ||
ctest --output-junit results.xml | ||
echo "Testing Done" | ||
- store_test_results: | ||
path: build/results.xml | ||
- run: | ||
name: Run Performance Tests | ||
command: | | ||
ctest | ||
./cicd-build/ninja_test | ||
./cicd-build/manifest_parser_perftest | ||
cd build | ||
for test in build_log_perftest canon_perftest clparser_perftest elide_middle_perftest hash_collision_bench; do | ||
echo "Running $test" | ||
./$test | ||
done | ||
workflows: | ||
version: 2 | ||
build_and_test: | ||
build-test-workflow: | ||
jobs: | ||
- build | ||
- test: | ||
requires: | ||
- build | ||
- build-test |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.