Commit c1363153 authored by Guillaume Pasero's avatar Guillaume Pasero

CI: use fast build as precheck

parent 756860fe
......@@ -43,9 +43,13 @@ fast-build:
extends: .general
only: [merge_requests, branches]
stage: precheck
image: $CI_REGISTRY/gpasero/otb-install-ubuntu-native
image: $CI_REGISTRY/gpasero/otb/otb-install-ubuntu-native
before_script:
- python3 CI/check_twin_pipelines.py
- git checkout $CI_COMMIT_REF_NAME
script:
- ctest -V -S CI/main_ci.cmake -DIMAGE_NAME:string=ubuntu-18.04-fast
- ccache -s
debian-build:
extends: .general
......
......@@ -130,10 +130,15 @@ if ( NOT _build_rv EQUAL 0 )
message( SEND_ERROR "An error occurs during ctest_build.")
endif()
ctest_test(PARALLEL_LEVEL 8
RETURN_VALUE _test_rv
CAPTURE_CMAKE_ERROR _test_error
)
if(ci_skip_testing)
message(STATUS "Skip testing")
set(_test_rv 0)
else()
ctest_test(PARALLEL_LEVEL 8
RETURN_VALUE _test_rv
CAPTURE_CMAKE_ERROR _test_error
)
endif()
if ( NOT _test_rv EQUAL 0 )
message( SEND_ERROR "An error occurs during ctest_test.")
......
......@@ -31,3 +31,5 @@ CMAKE_C_COMPILER_LAUNCHER:STRING=ccache
CMAKE_CXX_COMPILER_LAUNCHER:STRING=ccache
OTB_USE_SHARK:BOOL=OFF
BUILD_EXAMPLES:BOOL=OFF")
set(ci_skip_testing ON)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment