From a6c9ba856771a0c10d3206669b936d2c3585f818 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 24 Oct 2021 21:23:48 +0200 Subject: .build.yml. Run unit tests directly after build in build_scripts: target. --- .build.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.build.yml b/.build.yml index d7cc048..59c9151 100644 --- a/.build.yml +++ b/.build.yml @@ -200,18 +200,14 @@ build_scripts: - scan-build $CHECKERS --keep-cc -o html-report make - cd - - fi - -after_scripts: - - if [ ${BUILD_TYPE} == "scripts" ];then - - XVFB_RUN="$(which xvfb-run || true)" - - if [ ${DISTRO_NAME} == "debian" ] || [ ${DISTRO_NAME} == "ubuntu" ]; then - - if [ -e ./CMakeLists.txt ]; then - - cd build/gtk3/ - - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test - - cd - - - cd build/gtk2/ - - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test - - cd - - - fi + - XVFB_RUN="$(which xvfb-run || true)" + - if [ ${DISTRO_NAME} == "debian" ] || [ ${DISTRO_NAME} == "ubuntu" ]; then + - if [ -e ./CMakeLists.txt ]; then + - cd build/gtk3/ + - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test + - cd - + - cd build/gtk2/ + - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test + - cd - - fi - fi -- cgit v1.2.3