Make Coverity use the main KiCad version string
Also create a kicad_build_version.txt file in the build directory that only contains the version string.
This commit is contained in:
parent
fd647a1fa9
commit
9997c46ee4
|
@ -28,8 +28,8 @@
|
||||||
--form token=$COVERITY_SCAN_TOKEN \
|
--form token=$COVERITY_SCAN_TOKEN \
|
||||||
--form email=$GITLAB_USER_EMAIL \
|
--form email=$GITLAB_USER_EMAIL \
|
||||||
--form file=@cov-int.tar.gz \
|
--form file=@cov-int.tar.gz \
|
||||||
--form version="`git describe --tags`" \
|
--form version="`cat kicad_build_version.txt`" \
|
||||||
--form description="`git describe --tags` / $CI_COMMIT_TITLE / $CI_COMMIT_REF_NAME:$CI_PIPELINE_ID " 2>&1 \
|
--form description="`cat kicad_build_version.txt` / $CI_COMMIT_TITLE" 2>&1 \
|
||||||
| tee curl-response.txt
|
| tee curl-response.txt
|
||||||
grep -q 'Build successfully submitted' curl-response.txt
|
grep -q 'Build successfully submitted' curl-response.txt
|
||||||
|
|
||||||
|
@ -47,6 +47,8 @@ Coverity:
|
||||||
- cov-analysis-linux64.tgz
|
- cov-analysis-linux64.tgz
|
||||||
before_script:
|
before_script:
|
||||||
- export COVERITY_SCAN_PROJECT_NAME="kicad"
|
- export COVERITY_SCAN_PROJECT_NAME="kicad"
|
||||||
|
- test "$(git rev-parse --is-shallow-repository)" = "false" || (git fetch --unshallow)
|
||||||
|
- git fetch origin
|
||||||
script:
|
script:
|
||||||
- *coverity_cache_prep
|
- *coverity_cache_prep
|
||||||
- cmake
|
- cmake
|
||||||
|
|
|
@ -73,6 +73,8 @@ if( _wvh_write_version_file )
|
||||||
|
|
||||||
file( WRITE ${OUTPUT_FILE} ${_wvh_new_version_text} )
|
file( WRITE ${OUTPUT_FILE} ${_wvh_new_version_text} )
|
||||||
|
|
||||||
|
# Write a simple document with only the full version
|
||||||
|
file( WRITE ${TEXT_OUTPUT_FILE} "${KICAD_VERSION_FULL}" )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# There should always be a valid version.h file. Otherwise, the build will fail.
|
# There should always be a valid version.h file. Otherwise, the build will fail.
|
||||||
|
|
|
@ -144,6 +144,7 @@ add_custom_target(
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_COMMAND}
|
||||||
-DKICAD_VERSION_EXTRA=${KICAD_VERSION_EXTRA}
|
-DKICAD_VERSION_EXTRA=${KICAD_VERSION_EXTRA}
|
||||||
-DOUTPUT_FILE=${CMAKE_BINARY_DIR}/kicad_build_version.h
|
-DOUTPUT_FILE=${CMAKE_BINARY_DIR}/kicad_build_version.h
|
||||||
|
-DTEXT_OUTPUT_FILE=${CMAKE_BINARY_DIR}/kicad_build_version.txt
|
||||||
-DSRC_PATH=${PROJECT_SOURCE_DIR}
|
-DSRC_PATH=${PROJECT_SOURCE_DIR}
|
||||||
-DCMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}
|
-DCMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}
|
||||||
-P ${CMAKE_MODULE_PATH}/WriteVersionHeader.cmake
|
-P ${CMAKE_MODULE_PATH}/WriteVersionHeader.cmake
|
||||||
|
|
Loading…
Reference in New Issue