Skip to content

Commit

Permalink
setup Coverity scan
Browse files Browse the repository at this point in the history
  • Loading branch information
samcmill committed Jan 25, 2020
1 parent 760c535 commit f3b4347
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Coverity scan

on:
schedule:
- cron: '0 0 * * 0' # Weekly

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: download Coverity tool
run: |
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=samcmill-wassail" -O cov-analysis-linux64.tar.gz
mkdir cov-analysis-linux64
tar -xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}

- uses: actions/checkout@v1

- name: install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y autoconf autoconf-archive automake ca-certificates curl file libtool make pkg-config libdispatch-dev libibumad-dev libpciaccess-dev libssh-dev pciutils-dev
- name: autoreconf
run: autoreconf -fiv

- name: configure
run: ./configure

- name: make
run: |
export PATH=$(pwd)/cov-analysis-linux64/bin:$PATH
cov-build --dir cov-int make
- name: submit
run: |
tar -czvf wassail.tgz cov-int
curl \
--form project=samcmill-wassail \
--form token=$TOKEN \
--form email=scott.andrew.mcmillan@gmail.com \
--form file=@wassail.tgz \
--form version=master \
--form description="https://github.com/samcmill/wassail" \
https://scan.coverity.com/builds?project=samcmill-wassail
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Build status](https://img.shields.io/github/workflow/status/samcmill/wassail/Linux%20build/master?label=Linux%20Build)](https://github.com/samcmill/wassail/actions?query=workflow%3A%22Linux+build%22)
[![Build status](https://img.shields.io/github/workflow/status/samcmill/wassail/macOS%20build/master?label=macOS%20Build)](https://github.com/samcmill/wassail/actions?query=workflow%3A%22macOS+build%22)
[![Coverage Status](https://coveralls.io/repos/github/samcmill/wassail/badge.svg?branch=master)](https://coveralls.io/github/samcmill/wassail?branch=master)
[![Coverity Status](https://scan.coverity.com/projects/20226/badge.svg)](https://scan.coverity.com/projects/samcmill-wassail)
[![Documentation](https://img.shields.io/badge/docs-doxygen-blue.svg)](https://samcmill.github.io/wassail)
[![License](https://img.shields.io/github/license/samcmill/wassail)](https://github.com/samcmill/wassail/blob/master/LICENSE)

Expand Down

0 comments on commit f3b4347

Please sign in to comment.