1
1

gitlab-ci: Add a build template

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Этот коммит содержится в:
Andreas Schneider 2020-03-28 06:53:42 +01:00
родитель b2c7fce968
Коммит 7f869e4c99

Просмотреть файл

@ -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