Skip to content

Commit

Permalink
Merge pull request #63 from koinos/valgrind
Browse files Browse the repository at this point in the history
Add Valgrind to CI
  • Loading branch information
youkaicountry authored Aug 8, 2022
2 parents 5b53c56 + 19eca6f commit 5dcbc24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [[ -z $BUILD_DOCKER ]]; then
sudo -E apt-get -yq --no-install-suggests --no-install-recommends --allow-downgrades --allow-remove-essential --allow-change-held-packages install clang-11 llvm-11 -o Debug::pkgProblemResolver=yes

if [ "$RUN_TYPE" = "coverage" ]; then
sudo apt-get install -y lcov ruby
sudo apt-get install -y lcov ruby valgrind
sudo gem install coveralls-lcov
fi

Expand Down
3 changes: 3 additions & 0 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ set -x
if [ "$RUN_TYPE" = "test" ]; then
cd $(dirname "$0")/../build/tests
exec ctest -j3 --output-on-failure && ../libraries/vendor/mira/test/mira_test
elif [ "$RUN_TYPE" = "coverage" ]; then
cd $(dirname "$0")/../build/tests
exec valgrind --error-exitcode=1 --leak-check=yes ./koinos_mempool_tests
fi

if ! [[ -z $BUILD_DOCKER ]]; then
Expand Down

0 comments on commit 5dcbc24

Please sign in to comment.