Skip to content

Celix Coverity Scan #170

Celix Coverity Scan

Celix Coverity Scan #170

Workflow file for this run

name: Celix Coverity Scan
on:
# push:
# pull_request:
schedule:
- cron: '0 0 * * 0' # Weekly at 00:00 UTC
jobs:
latest:
runs-on: ubuntu-22.04
steps:
- name: Checkout source code
uses: actions/checkout@v3.3.0
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -yq --no-install-recommends \
build-essential \
curl \
uuid-dev \
libzip-dev \
libjansson-dev \
libcurl4-openssl-dev \
default-jdk \
cmake \
libffi-dev \
libxml2-dev \
libczmq-dev \
libcpputest-dev \
rapidjson-dev \
libavahi-compat-libdnssd-dev \
libcivetweb-dev \
civetweb
- name: Download Coverity Build Tool
run: |
mkdir -p build/cov-analysis-linux64
cd build
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=Apache+Celix" -O cov-analysis-linux64.tar.gz
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
- name: Build
env:
BUILD_OPTIONS: |
-DBUILD_EXPERIMENTAL=ON
-DENABLE_TESTING=ON
-DENABLE_TESTING_DEPENDENCY_MANAGER_FOR_CXX11=ON
-DENABLE_TESTING_FOR_CXX14=ON
-DRSA_JSON_RPC=ON
-DRSA_SHM=ON
-DRSA_REMOTE_SERVICE_ADMIN_SHM_V2=ON
-DSHELL_BONJOUR=ON
run: |
cd build
cmake ${BUILD_OPTIONS} ..
export PATH=`pwd`/cov-analysis-linux64/bin:$PATH
cov-build --dir cov-int make
- name: Submit the result to Coverity Scan
run: |
cd build
tar czvf celix.tgz cov-int
curl \
--form project=Apache+Celix \
--form token=$TOKEN \
--form email=a.broekhuis@gmail.com \
--form file=@celix.tgz \
--form version=master \
https://scan.coverity.com/builds?project=Apache+Celix
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}