gitlab-ci: Add stages
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Этот коммит содержится в:
родитель
c79e67ca1e
Коммит
fc694a5c49
@ -6,7 +6,13 @@ variables:
|
|||||||
TUMBLEWEED_BUILD: buildenv-tumbleweed
|
TUMBLEWEED_BUILD: buildenv-tumbleweed
|
||||||
MINGW_BUILD: buildenv-mingw
|
MINGW_BUILD: buildenv-mingw
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
- analysis
|
||||||
|
|
||||||
.build:
|
.build:
|
||||||
|
stage: build
|
||||||
variables:
|
variables:
|
||||||
CMAKE_DEFAULT_OPTIONS: "-DCMAKE_BUILD_TYPE=RelWithDebInfo -DPICKY_DEVELOPER=ON"
|
CMAKE_DEFAULT_OPTIONS: "-DCMAKE_BUILD_TYPE=RelWithDebInfo -DPICKY_DEVELOPER=ON"
|
||||||
CMAKE_BUILD_OPTIONS: "-DWITH_BLOWFISH_CIPHER=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON -DWITH_DEBUG_CRYPTO=ON -DWITH_DEBUG_PACKET=ON -DWITH_DEBUG_CALLTRACE=ON"
|
CMAKE_BUILD_OPTIONS: "-DWITH_BLOWFISH_CIPHER=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON -DWITH_DEBUG_CRYPTO=ON -DWITH_DEBUG_PACKET=ON -DWITH_DEBUG_CALLTRACE=ON"
|
||||||
@ -37,6 +43,7 @@ variables:
|
|||||||
|
|
||||||
.tests:
|
.tests:
|
||||||
extends: .build
|
extends: .build
|
||||||
|
stage: test
|
||||||
script:
|
script:
|
||||||
- cmake $CMAKE_OPTIONS $CMAKE_ADDTIONAL_OPTIONS .. &&
|
- cmake $CMAKE_OPTIONS $CMAKE_ADDTIONAL_OPTIONS .. &&
|
||||||
make -j$(nproc) &&
|
make -j$(nproc) &&
|
||||||
@ -126,6 +133,7 @@ fedora/openssl_1.1.x/x86_64/minimal:
|
|||||||
# TODO: add -DCLIENT_TESTING=ON -DSERVER_TESTING=ON
|
# TODO: add -DCLIENT_TESTING=ON -DSERVER_TESTING=ON
|
||||||
fedora/address-sanitizer:
|
fedora/address-sanitizer:
|
||||||
extends: .fedora
|
extends: .fedora
|
||||||
|
stage: analysis
|
||||||
script:
|
script:
|
||||||
- cmake
|
- cmake
|
||||||
-DCMAKE_BUILD_TYPE=AddressSanitizer
|
-DCMAKE_BUILD_TYPE=AddressSanitizer
|
||||||
@ -142,6 +150,7 @@ fedora/address-sanitizer:
|
|||||||
# It also has ethe same issues with cwrap as AddressSanitizer
|
# It also has ethe same issues with cwrap as AddressSanitizer
|
||||||
.fedora/memory-sanitizer:
|
.fedora/memory-sanitizer:
|
||||||
extends: .fedora
|
extends: .fedora
|
||||||
|
stage: analysis
|
||||||
script:
|
script:
|
||||||
- cmake
|
- cmake
|
||||||
-DCMAKE_BUILD_TYPE=MemorySanitizer
|
-DCMAKE_BUILD_TYPE=MemorySanitizer
|
||||||
@ -156,6 +165,7 @@ fedora/address-sanitizer:
|
|||||||
|
|
||||||
fedora/undefined-sanitizer:
|
fedora/undefined-sanitizer:
|
||||||
extends: .fedora
|
extends: .fedora
|
||||||
|
stage: analysis
|
||||||
script:
|
script:
|
||||||
- cmake
|
- cmake
|
||||||
-DCMAKE_BUILD_TYPE=UndefinedSanitizer
|
-DCMAKE_BUILD_TYPE=UndefinedSanitizer
|
||||||
@ -218,6 +228,7 @@ fedora/mingw32:
|
|||||||
# Fedora csbuild #
|
# Fedora csbuild #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
.csbuild:
|
.csbuild:
|
||||||
|
stage: analysis
|
||||||
variables:
|
variables:
|
||||||
GIT_DEPTH: "100"
|
GIT_DEPTH: "100"
|
||||||
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
|
||||||
@ -328,6 +339,7 @@ tumbleweed/openssl_1.1.x/x86_64/clang:
|
|||||||
|
|
||||||
tumbleweed/static-analysis:
|
tumbleweed/static-analysis:
|
||||||
extends: .tests
|
extends: .tests
|
||||||
|
stage: analysis
|
||||||
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
|
||||||
script:
|
script:
|
||||||
- export CCC_CC=clang
|
- export CCC_CC=clang
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user