forked from SoftEtherVPN/SoftEtherVPN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: get rid of travis-ci coverity wrapper
- Loading branch information
1 parent
f6f2660
commit 6bb3ebf
Showing
2 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,16 +5,13 @@ on: | |
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
permissions: | ||
contents: read | ||
|
||
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: | ||
|
@@ -23,8 +20,24 @@ jobs: | |
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y cmake gcc g++ libncurses5-dev libreadline-dev libssl-dev make zlib1g-dev libsodium-dev | ||
- name: Run Coverity Scan | ||
env: | ||
COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} | ||
- name: Download Coverity build tool | ||
run: | | ||
wget -c -N https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=SoftEtherVPN%2FSoftEtherVPN" -O coverity_tool.tar.gz | ||
mkdir coverity_tool | ||
tar xzf coverity_tool.tar.gz --strip 1 -C coverity_tool | ||
- name: Configure | ||
run: | | ||
./configure | ||
- name: Build with Coverity build tool | ||
run: | | ||
export PATH=`pwd`/coverity_tool/bin:$PATH | ||
cov-build --dir cov-int make -C build | ||
- name: Submit build result to Coverity Scan | ||
run: | | ||
curl -fsSL "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true | ||
tar czvf cov.tar.gz cov-int | ||
curl --form token=${{ secrets.COVERITY_SCAN_TOKEN }} \ | ||
--form [email protected] \ | ||
--form [email protected] \ | ||
--form version="Commit $GITHUB_SHA" \ | ||
--form description="Build submitted via CI" \ | ||
https://scan.coverity.com/builds?project=SoftEtherVPN%2FSoftEtherVPN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters