blob: fb53f3790d8e065f5771d5905f71ab82a1d3a359 (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
- job:
name: odp-coverity
project-type: matrix
defaults: global
description: |
* Run the static analysis tools (Coverity) on ODP.
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
linaro:
- job-read
- job-extended-read
- job-build
- job-cancel
- build-discarder:
num-to-keep: 30
days-to-keep: 30
disabled: false
node: master
child-workspace: .
display-name: 'ODP Coverity'
triggers:
# Run twice a week due to license restrictions
- timed: '0 0 * * 1,3'
axes:
- axis:
type: user-defined
name: build_type
values:
- generic
- axis:
type: slave
name: label
values:
- docker-jessie-amd64
wrappers:
- timestamps
- timeout:
timeout: 60
- credentials-binding:
- text:
credential-id: COVERITY_TOKEN_ODP
variable: COVERITY_TOKEN_ODP
- credentials-binding:
- text:
credential-id: COVERITY_TOKEN_ODP_NETMAP
variable: COVERITY_TOKEN_ODP_NETMAP
- matrix-tie-parent:
node: master
builders:
- shell: |
#!/bin/bash
set -e
rm -rf check-odp
git clone --depth 1 git://git.linaro.org/lng/check-odp.git
./check-odp/pre-install.sh
case "${build_type}" in
generic)
export token="${COVERITY_TOKEN_ODP}"
export project=ODP
;;
netmap)
export token="${COVERITY_TOKEN_ODP_NETMAP}"
export project=ODP-Netmap
;;
esac
wget https://scan.coverity.com/download/cxx/linux64 --no-verbose --post-data "token=${token}&project=${project}" -O coverity_tool.tgz
tar -zxf coverity_tool.tgz
export COV_DIR=$(find ${WORKSPACE} -type d -name 'cov-analysis-linux64-*')/bin
bash -x ${WORKSPACE}/check-odp/build-${build_type}.sh
odp_version=$(cat check-odp/linux-${build_type}-git-describe)
curl \
--form token=${token} \
--form email=mike.holmes@linaro.org \
--form file=@check-odp/linux-${build_type}-cov-int.tgz \
--form version="${odp_version}" \
--form description="CI ${BUILD_TAG}" \
https://scan.coverity.com/builds?project=${project}
publishers:
- warnings:
console-log-parsers:
- 'GNU Make + GNU C Compiler (gcc)'
- email:
recipients: 'lng-ci@lists.linaro.org'
|