From 0325c13c40fd1188f2ab640e2a6378b7c660ec45 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sat, 27 Feb 2021 01:12:07 +0500 Subject: [PATCH 1/3] move coverity scan to github actions --- .github/workflows/coverity.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/coverity.yml diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml new file mode 100644 index 00000000..c6dcedd2 --- /dev/null +++ b/.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: 'chipitsine@gmail.com' + 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 From 5792aa7c41ca6292b4550321c27bab47c2e2b4e8 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sat, 27 Feb 2021 01:12:59 +0500 Subject: [PATCH 2/3] remove coverity scan from travis --- .travis.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index b36a86f7..61dee691 100644 --- a/.travis.yml +++ b/.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="chipitsine@gmail.com" 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 From dd6e79d52610eb5d3b909668dcc9cce573efd980 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sat, 27 Feb 2021 01:13:29 +0500 Subject: [PATCH 3/3] remove travis-ci badge --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index a11dcbf9..632c7aa9 100644 --- a/README.md +++ b/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)|