Browse Source

Merge PR #1278: move coverity scan to github actions, cleanup travis-ci

Davide Beatrici 4 years ago
parent
commit
5cddafbb3b
3 changed files with 30 additions and 12 deletions
  1. 30 0
      .github/workflows/coverity.yml
  2. 0 11
      .travis.yml
  3. 0 1
      README.md

+ 30 - 0
.github/workflows/coverity.yml

@@ -0,0 +1,30 @@
+
+name: Coverity
+
+on:
+  schedule:
+  - cron: "0 0 * * *"
+
+jobs:
+  scan:
+    runs-on: ubuntu-latest
+    if: ${{ github.repository_owner == 'SoftEtherVPN' }}
+    env:
+      COVERITY_SCAN_PROJECT_NAME: 'SoftEtherVPN/SoftEtherVPN'
+      COVERITY_SCAN_BRANCH_PATTERN: '*'
+      COVERITY_SCAN_NOTIFICATION_EMAIL: '[email protected]'
+      COVERITY_SCAN_BUILD_COMMAND_PREPEND: "./configure"
+      COVERITY_SCAN_BUILD_COMMAND: "make -C build"
+    steps:
+    - uses: actions/checkout@v2
+      with:
+        submodules: true
+    - name: Install apt dependencies
+      run: |
+        sudo apt-get update
+        sudo apt-get install -y cmake gcc g++ libncurses5-dev libreadline-dev libssl-dev make zlib1g-dev
+    - name: Run Coverity Scan
+      env:
+        COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
+      run: |
+        curl -fsSL "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true

+ 0 - 11
.travis.yml

@@ -28,17 +28,6 @@ matrix:
         - ./bootstrap > build-deps.log 2>&1 || (cat build-deps.log && exit 1)
         - sudo make install > build-deps.log 2>&1 || (cat build-deps.log && exit 1)
         - cd ..
-    - env: OPENSSL_VERSION="1.0.2s" COVERITY_SCAN_PROJECT_NAME="SoftEtherVPN/SoftEtherVPN" COVERITY_SCAN_BRANCH_PATTERN="master" COVERITY_SCAN_NOTIFICATION_EMAIL="[email protected]" COVERITY_SCAN_BUILD_COMMAND_PREPEND="./configure" COVERITY_SCAN_BUILD_COMMAND="make -C build"
-      os: linux
-      compiler: clang
-      script:
-        - |
-          if [ ! -z ${COVERITY_SCAN_TOKEN+x} ]; then
-            export OPENSSL_ROOT_DIR=${OPENSSL_INSTALL_DIR}
-            export CFLAGS="-I${HOME}/opt/include"
-            export LDFLAGS="-L${HOME}/opt/lib -Wl,-rpath,${HOME}/opt/lib"
-            curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true
-          fi
     - env: OPENSSL_VERSION="1.1.1c"
       os: linux
       compiler: clang

+ 0 - 1
README.md

@@ -3,7 +3,6 @@
 ||Badges|
 |---|---|
 |AppVeyor|[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/softethervpn/softethervpn?branch=master&svg=true)](https://ci.appveyor.com/project/softethervpn/softethervpn) |
-|Travis CI|[![Travis CI build status](https://travis-ci.org/SoftEtherVPN/SoftEtherVPN.svg?branch=master)](https://travis-ci.org/SoftEtherVPN/SoftEtherVPN) |
 |GitLab CI|[![GitLab CI build status](https://gitlab.com/SoftEther/SoftEtherVPN/badges/master/pipeline.svg)](https://gitlab.com/SoftEther/SoftEtherVPN/pipelines)|
 |Coverity Scan|[![Coverity Scan build status](https://scan.coverity.com/projects/16304/badge.svg)](https://scan.coverity.com/projects/softethervpn-softethervpn)|
 |Azure Pipelines|[![Azure Pipelines build status for Nightly](https://dev.azure.com/SoftEther-VPN/SoftEther%20VPN/_apis/build/status/6?api-version=6.0-preview.1)](https://dev.azure.com/SoftEther-VPN/SoftEther%20VPN/_build?definitionId=6)|