You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by ab...@apache.org on 2020/06/29 12:38:02 UTC

[celix] branch feature/coverity-workflow created (now 80ec83e)

This is an automated email from the ASF dual-hosted git repository.

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


      at 80ec83e  First version for coverity workflow.

This branch includes the following new commits:

     new 80ec83e  First version for coverity workflow.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[celix] 01/01: First version for coverity workflow.

Posted by ab...@apache.org.
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 <al...@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 }}