blob: d6bf30469c3c20da990f7fff8eec845075e23015 [file] [log] [blame]
Zack Williams2d0de7e2018-07-06 17:59:17 -07001---
2# verification jobe for voltha
3
4- job-template:
5 id: 'voltha-unit-test'
6 name: '{project}_unit-test'
7
8 description: |
9 Created by {id} job-template from ci-management/jjb/voltha-unit-test.yaml
10
11 triggers:
12 - cord-infra-gerrit-trigger-patchset:
13 gerrit-server-name: '{gerrit-server-name}'
14 project-regexp: '^{project}$'
15 branch-regexp: '{branch-regexp}'
16 file-include-regexp: '{all-files-regexp}'
17 dependency-jobs: '{dependency-jobs}'
18
19 properties:
20 - cord-infra-properties:
21 build-days-to-keep: '{build-days-to-keep}'
22 artifact-num-to-keep: '{artifact-num-to-keep}'
23
24 wrappers:
25 - lf-infra-wrappers:
26 build-timeout: 20
27 jenkins-ssh-credential: '{jenkins-ssh-credential}'
28
29 scm:
30 - lf-infra-gerrit-scm:
31 git-url: '$GIT_URL/$GERRIT_PROJECT'
32 refspec: '$GERRIT_REFSPEC'
33 branch: '$GERRIT_BRANCH'
34 submodule-recursive: 'false'
35 choosing-strategy: gerrit
36 jenkins-ssh-credential: '{jenkins-ssh-credential}'
37
Kailashba035a42019-02-27 15:07:15 -080038 node: 'ubuntu16.04-basebuild-2c-4g'
Zack Williams2d0de7e2018-07-06 17:59:17 -070039 project-type: freestyle
40 concurrent: true
41
42 builders:
43 - shell: |
44 #!/usr/bin/env bash
Zack Williamsecec9052018-07-09 16:23:19 -070045 set -e -o pipefail
Zack Williams2d0de7e2018-07-06 17:59:17 -070046
47 rm -rf venv-linux
48 source ./env.sh
49
50 make utest-with-coverage
51
Zack Williamsecec9052018-07-09 16:23:19 -070052 publishers:
53 - junit:
Zack Williamse8e5ebe2019-01-25 15:24:01 -070054 results: "**/nosetests.xml,**/junit-report.xml"
Zack Williamsecec9052018-07-09 16:23:19 -070055 - cobertura:
56 report-file: "**/coverage.xml"
57 targets:
58 - files:
59 healthy: 80
60 unhealthy: 0
61 failing: 0
62 - method:
63 healthy: 50
64 unhealthy: 0
65 failing: 0