]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: [coverity]
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 16 Feb 2020 20:48:28 +0000 (21:48 +0100)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 16 Feb 2020 20:48:28 +0000 (21:48 +0100)
.github/workflows/coverity.yml

index 9f70d6ec74705dcde91a6aeef7a4489b0b391112..4fc4a4fb442f224badcb74859463a2b47a00127d 100644 (file)
@@ -13,10 +13,29 @@ jobs:
     if: "contains(github.event.head_commit.message, '[coverity]')"
 
     steps:
-    - uses: actions/checkout@v1
-    - name: submodules
+    - name: Checkout
+      uses: actions/checkout@v1
+
+    - name: Init submodules
       run: git submodule update --init util ast
-    - name: download coverity tool
-      run: curl https://scan.coverity.com/download/cxx/linux64
-    - name: make
+
+    - name: Download tool
+      run: |
+        wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "${{ token=secrets.COVERITY_TOKEN }}&project=fennecdjay/Gwion" -O cov-analysis-linux64.tar.gz
+        mkdir cov-analysis-linux64
+        tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
+
+    - name: Build
       run: cov-build --dir cov-int make 
+
+    - name: Submit
+      run: |
+        tar czvf gwion.tgz cov-int
+        curl \
+          --form project=dennecdjay/Gwion \
+          --form token=${{ secrets.COVERITY_TOKEN }} \
+          --form email=astor.jeremie@wanadoo.fr \
+          --form file=@gwion.tgz \
+          --form version=trunk \
+          --form description="`./ruby -v`" \
+          https://scan.coverity.com/builds?project=fennecdjay/Gwion