From b53a80eca3f2e70e74c83d67bd86bd9190d1ee86 Mon Sep 17 00:00:00 2001 From: Ruixiang Du Date: Sun, 16 Aug 2020 10:14:55 +0000 Subject: [PATCH] Update .gitlab-ci.yml to run test --- .gitlab-ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 40686a2..70cecdd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,7 +8,7 @@ build: - apt update && apt -y install libasio-dev script: - mkdir build && cd build - - cmake .. + - cmake -DBUILD_TESTS=ON .. - cmake --build . && cpack # artifacts: # paths: @@ -19,7 +19,7 @@ build: # - "*.o" # run tests using the binary built before -# test: -# stage: test -# script: -# - ./runmytests.sh +test: + stage: test + script: + - ./build/bin/gtest_all