mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
gitlab-ci: Add a build template
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user