celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abroekh...@apache.org
Subject [celix] 01/01: First version for coverity workflow.
Date Mon, 29 Jun 2020 12:38:03 GMT
This is an automated email from the ASF dual-hosted git repository.

abroekhuis pushed a commit to branch feature/coverity-workflow
in repository https://gitbox.apache.org/repos/asf/celix.git

commit 80ec83e1ff9a6f77d60d2987603604c61308595f
Author: Alexander Broekhuis <alexander.broekhuis@luminis.eu>
AuthorDate: Mon Jun 29 14:37:47 2020 +0200

    First version for coverity workflow.
---
 .github/workflows/coverity-scan.yml | 56 +++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/.github/workflows/coverity-scan.yml b/.github/workflows/coverity-scan.yml
new file mode 100644
index 0000000..330e407
--- /dev/null
+++ b/.github/workflows/coverity-scan.yml
@@ -0,0 +1,56 @@
+name: coverity-scan
+on:
+  schedule:
+    - cron: '0 0 * * 0' # Weekly at 00:00 UTC
+
+jobs:
+  latest:
+    runs-on: ubuntu-18.04
+    steps:
+      - name: Checkout source code
+        uses: actions/checkout@master
+      - name: Install dependencies
+        run: |
+          sudo apt-get update
+          sudo apt-get install -yq --no-install-recommends \
+            build-essential \
+            curl \
+            uuid-dev \
+            libjansson-dev \
+            libcurl4-openssl-dev \
+            default-jdk \
+            cmake \
+            libffi-dev \
+            libxml2-dev \
+            libczmq-dev \
+            libcpputest-dev
+      - 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: |
+            -DENABLE_TESTING=ON
+            -DCMAKE_BUILD_TYPE=Debug
+        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: |
+          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 }}


Mime
View raw message