Skip to content

Commit

Permalink
add test result display for circleCI dashboard
Browse files Browse the repository at this point in the history
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
waynewangyuxuan committed Nov 10, 2024
1 parent 5e73bbb commit 75a9412
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 2,668 deletions.
77 changes: 43 additions & 34 deletions .circleci/config.yml
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
11 changes: 0 additions & 11 deletions doc/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions doc/dblatex.xsl

This file was deleted.

34 changes: 0 additions & 34 deletions doc/docbook.xsl

This file was deleted.

Loading

0 comments on commit 75a9412

Please sign in to comment.