ref: f014317fb10448e5f4b2f80eb819f6ffdf7815f5
parent: fad505e8ed6190062515668e3a480ada583e1637
author: Marcus Asteborg <maastebo@microsoft.com>
date: Sun Jun 7 17:07:58 EDT 2020
Build and run test for cmake build in gitlab-ci Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -30,5 +30,6 @@
apt-get install -y cmake ninja-build
script:
- mkdir build
- - cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release
+ - cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DOPUS_BUILD_TESTING=ON -DOPUS_BUILD_PROGRAMS=ON
- cmake --build build
+ - cd build && ctest --output-on-failure