-
Notifications
You must be signed in to change notification settings - Fork 30
41 lines (33 loc) · 1.17 KB
/
coverity.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Coverity Scan
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential lsb-release curl ca-certificates libslurm-dev perl
- name: Coverity download
env:
COVERITY_TOKEN: ${{ secrets.COVERITY_TOKEN }}
run: |
mkdir -p cov-analysis-linux64
curl --proto '=https' -fSsL https://scan.coverity.com/download/linux64 --data "token=${COVERITY_TOKEN}&project=NVIDIA%2Fpyxis" | tar xz --strip 1 -C cov-analysis-linux64
- name: Coverity build
run: |
export PATH="./cov-analysis-linux64/bin:${PATH}"
cov-build --dir cov-int make
tar czf pyxis.tgz cov-int
- name: Coverity upload
env:
COVERITY_TOKEN: ${{ secrets.COVERITY_TOKEN }}
run: |
curl --form "token=${COVERITY_TOKEN}" \
--form [email protected] \
--form [email protected] \
--form description="Container plugin for Slurm Workload Manager" \
https://scan.coverity.com/builds?project=NVIDIA%2Fpyxis