Commit fde41e5b authored by Jurre van Bergen's avatar Jurre van Bergen
Browse files

added clang and valgrind tests

parent cfaaf319
Pipeline #32 failed with stages
in 36 seconds
......@@ -6,22 +6,45 @@ image: offtherecord/libotr-gcc
# - apt install --no-install-recommends -y build-essential git autoconf libtool libsodium-dev automake libgcrypt20 libglib2.0-dev intltool libxml2-dev git libgcrypt20-dev
stages:
- build
- test
- buildgcc
- buildclang
- testgcc
- testclang
- valgrindtestgcc
- valgrindtestclang
building:
stage: build
stage: buildgcc
script:
- autoreconf --install
- ./configure
- make
- make install
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
building:
stage: buildclang
script:
- export CC=/usr/bin/clang
- autoreconf --install
- ./configure
- make
- make install
testing:
stage: testgcc
script:
- autoreconf --install
- ./configure
- make
- make install
- cd tests
- make
- ./run.sh ./test_list
testing:
stage: test
stage: testclang
script:
- export CC=/usr/bin/clang
- autoreconf --install
- ./configure
- make
......@@ -29,5 +52,27 @@ testing:
- cd tests
- make
- ./run.sh ./test_list
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
testing:
stage: valgrindtestgcc
script:
- export CC=/usr/bin/clang
- autoreconf --install
- ./configure
- make
- make install
- cd tests
- make
- valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all ./run.sh ./test_list
testing:
stage: valgrindtestclang
script:
- export CC=/usr/bin/clang
- autoreconf --install
- ./configure
- make
- make install
- cd tests
- make
- valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all ./run.sh ./test_list
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment