Zack Williams | 2d0de7e | 2018-07-06 17:59:17 -0700 | [diff] [blame] | 1 | --- |
| 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' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 34 | submodule-disable: '{submodule-disable}' |
Zack Williams | 2d0de7e | 2018-07-06 17:59:17 -0700 | [diff] [blame] | 35 | submodule-recursive: 'false' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 36 | submodule-timeout: '{submodule-timeout}' |
Zack Williams | 2d0de7e | 2018-07-06 17:59:17 -0700 | [diff] [blame] | 37 | choosing-strategy: gerrit |
| 38 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 39 | |
Kailash | 5c487b1 | 2019-03-05 11:20:21 -0800 | [diff] [blame] | 40 | node: 'ubuntu16.04-basebuild-4c-8g' |
Zack Williams | 2d0de7e | 2018-07-06 17:59:17 -0700 | [diff] [blame] | 41 | project-type: freestyle |
| 42 | concurrent: true |
| 43 | |
| 44 | builders: |
| 45 | - shell: | |
| 46 | #!/usr/bin/env bash |
Zack Williams | ecec905 | 2018-07-09 16:23:19 -0700 | [diff] [blame] | 47 | set -e -o pipefail |
Zack Williams | 2d0de7e | 2018-07-06 17:59:17 -0700 | [diff] [blame] | 48 | |
| 49 | rm -rf venv-linux |
| 50 | source ./env.sh |
| 51 | |
| 52 | make utest-with-coverage |
| 53 | |
Zack Williams | ecec905 | 2018-07-09 16:23:19 -0700 | [diff] [blame] | 54 | publishers: |
| 55 | - junit: |
Zack Williams | e8e5ebe | 2019-01-25 15:24:01 -0700 | [diff] [blame] | 56 | results: "**/nosetests.xml,**/junit-report.xml" |
Zack Williams | ecec905 | 2018-07-09 16:23:19 -0700 | [diff] [blame] | 57 | - cobertura: |
| 58 | report-file: "**/coverage.xml" |
| 59 | targets: |
| 60 | - files: |
| 61 | healthy: 80 |
| 62 | unhealthy: 0 |
| 63 | failing: 0 |
| 64 | - method: |
| 65 | healthy: 50 |
| 66 | unhealthy: 0 |
| 67 | failing: 0 |