gitlab-ci: Add a build template
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Этот коммит содержится в:
родитель
b2c7fce968
Коммит
7f869e4c99
@ -6,22 +6,34 @@ variables:
|
|||||||
TUMBLEWEED_BUILD: buildenv-tumbleweed
|
TUMBLEWEED_BUILD: buildenv-tumbleweed
|
||||||
MINGW_BUILD: buildenv-mingw
|
MINGW_BUILD: buildenv-mingw
|
||||||
|
|
||||||
.tests:
|
.build:
|
||||||
before_script:
|
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:
|
script:
|
||||||
- make -j$(nproc) && ctest --output-on-failure
|
- make -j$(nproc)
|
||||||
# Do not use after_script as it does not make the targets fail
|
# Do not use after_script as it does not make the targets fail
|
||||||
tags:
|
tags:
|
||||||
- shared
|
- shared
|
||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
when: on_failure
|
when: on_failure
|
||||||
paths:
|
paths:
|
||||||
- obj/
|
- 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:
|
.fedora:
|
||||||
extends: .tests
|
extends: .tests
|
||||||
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user