mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 08:15:36 +00:00
Fix once and for all™ coverity's schedule
- According to https://gitlab.com/OpenMW/openmw/-/jobs/1176801332 there is no need to `cd` into build, since coverity will generate a `cov-int` folder in the current folder. - Don't run other jobs by default during scheduled runs. - Add a missing terminal quote to coverity's upload command.
This commit is contained in:
parent
e350d7d4ff
commit
d37b66d58f
1 changed files with 12 additions and 6 deletions
|
@ -16,6 +16,8 @@ stages:
|
|||
- apt-cache/
|
||||
- ccache/
|
||||
stage: build
|
||||
rules:
|
||||
- if: '$CI_PIPELINE_SOURCE != "schedule"'
|
||||
script:
|
||||
- export CCACHE_BASEDIR="`pwd`"
|
||||
- export CCACHE_DIR="`pwd`/ccache" && mkdir -pv "$CCACHE_DIR"
|
||||
|
@ -31,7 +33,8 @@ stages:
|
|||
- build/install/
|
||||
|
||||
Coverity:
|
||||
extends: .Debian
|
||||
extends: .Debian_Image
|
||||
stage: build
|
||||
rules:
|
||||
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
||||
before_script:
|
||||
|
@ -43,12 +46,11 @@ Coverity:
|
|||
# Add more than just `openmw` once we can build everything under 3h
|
||||
- cov-analysis-linux64-*/bin/cov-build --dir cov-int cmake --build build -- -j $(nproc) openmw
|
||||
after_script:
|
||||
- cd build/
|
||||
- tar cfz cov-int.tar.gz cov-int
|
||||
- curl https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME \
|
||||
--form token=$COVERITY_SCAN_TOKEN --form email=$GITLAB_USER_EMAIL \
|
||||
--form file=@cov-int.tar.gz --form version="`git describe --tags`" \
|
||||
--form description="`git describe --tags` / $CI_COMMIT_TITLE / $CI_COMMIT_REF_NAME:$CI_PIPELINE_ID
|
||||
- curl https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME
|
||||
--form token=$COVERITY_SCAN_TOKEN --form email=$GITLAB_USER_EMAIL
|
||||
--form file=@cov-int.tar.gz --form version="`git describe --tags`"
|
||||
--form description="`git describe --tags` / $CI_COMMIT_TITLE / $CI_COMMIT_REF_NAME:$CI_PIPELINE_ID"
|
||||
variables:
|
||||
CC: gcc
|
||||
CXX: g++
|
||||
|
@ -182,6 +184,8 @@ variables: &cs-targets
|
|||
- choco install python -y
|
||||
- refreshenv
|
||||
stage: build
|
||||
rules:
|
||||
- if: '$CI_PIPELINE_SOURCE != "schedule"'
|
||||
script:
|
||||
- $time = (Get-Date -Format "HH:mm:ss")
|
||||
- echo ${time}
|
||||
|
@ -274,6 +278,8 @@ Windows_Ninja_CS_RelWithDebInfo:
|
|||
- choco install python -y
|
||||
- refreshenv
|
||||
stage: build
|
||||
rules:
|
||||
- if: '$CI_PIPELINE_SOURCE != "schedule"'
|
||||
script:
|
||||
- $time = (Get-Date -Format "HH:mm:ss")
|
||||
- echo ${time}
|
||||
|
|
Loading…
Reference in a new issue