diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 924e2711..73f46e00 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,22 +6,34 @@ variables: TUMBLEWEED_BUILD: buildenv-tumbleweed MINGW_BUILD: buildenv-mingw -.tests: +.build: before_script: - - mkdir -p obj && cd obj + - uname -a + - cat /etc/os-release + - mount + - df -h + - cat /proc/swaps + - free -h + - mkdir -p obj && cd obj script: - - make -j$(nproc) && ctest --output-on-failure + - make -j$(nproc) # Do not use after_script as it does not make the targets fail tags: - - shared + - shared except: - - tags + - tags artifacts: expire_in: 1 week when: on_failure paths: - obj/ +.tests: + extends: .build + script: + - make -j$(nproc) && ctest --output-on-failure + # Do not use after_script as it does not make the targets fail + .fedora: extends: .tests image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD