1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-21 06:11:34 +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:
jvoisin 2021-04-16 15:21:44 +02:00
parent e350d7d4ff
commit d37b66d58f

View file

@ -16,6 +16,8 @@ stages:
- apt-cache/ - apt-cache/
- ccache/ - ccache/
stage: build stage: build
rules:
- if: '$CI_PIPELINE_SOURCE != "schedule"'
script: script:
- export CCACHE_BASEDIR="`pwd`" - export CCACHE_BASEDIR="`pwd`"
- export CCACHE_DIR="`pwd`/ccache" && mkdir -pv "$CCACHE_DIR" - export CCACHE_DIR="`pwd`/ccache" && mkdir -pv "$CCACHE_DIR"
@ -31,7 +33,8 @@ stages:
- build/install/ - build/install/
Coverity: Coverity:
extends: .Debian extends: .Debian_Image
stage: build
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"' - if: '$CI_PIPELINE_SOURCE == "schedule"'
before_script: before_script:
@ -43,12 +46,11 @@ Coverity:
# Add more than just `openmw` once we can build everything under 3h # 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 - cov-analysis-linux64-*/bin/cov-build --dir cov-int cmake --build build -- -j $(nproc) openmw
after_script: after_script:
- cd build/
- tar cfz cov-int.tar.gz cov-int - tar cfz cov-int.tar.gz cov-int
- curl https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME \ - curl https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME
--form token=$COVERITY_SCAN_TOKEN --form email=$GITLAB_USER_EMAIL \ --form token=$COVERITY_SCAN_TOKEN --form email=$GITLAB_USER_EMAIL
--form file=@cov-int.tar.gz --form version="`git describe --tags`" \ --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 --form description="`git describe --tags` / $CI_COMMIT_TITLE / $CI_COMMIT_REF_NAME:$CI_PIPELINE_ID"
variables: variables:
CC: gcc CC: gcc
CXX: g++ CXX: g++
@ -182,6 +184,8 @@ variables: &cs-targets
- choco install python -y - choco install python -y
- refreshenv - refreshenv
stage: build stage: build
rules:
- if: '$CI_PIPELINE_SOURCE != "schedule"'
script: script:
- $time = (Get-Date -Format "HH:mm:ss") - $time = (Get-Date -Format "HH:mm:ss")
- echo ${time} - echo ${time}
@ -274,6 +278,8 @@ Windows_Ninja_CS_RelWithDebInfo:
- choco install python -y - choco install python -y
- refreshenv - refreshenv
stage: build stage: build
rules:
- if: '$CI_PIPELINE_SOURCE != "schedule"'
script: script:
- $time = (Get-Date -Format "HH:mm:ss") - $time = (Get-Date -Format "HH:mm:ss")
- echo ${time} - echo ${time}