[compass4nfv] add the docker images build
[releng.git] / jjb / yardstick / yardstick-project-jobs.yml
1 ---
2 ###################################################
3 # All the jobs except verify have been removed!
4 # They will only be enabled on request by projects!
5 ###################################################
6 - project:
7     name: yardstick-project-jobs
8
9     project: 'yardstick'
10
11     jobs:
12       - 'yardstick-verify-{stream}'
13       - 'yardstick-merge-{stream}'
14
15     stream:
16       - master:
17           branch: '{stream}'
18           gs-pathname: ''
19           disabled: false
20       - euphrates:
21           branch: 'stable/{stream}'
22           gs-pathname: '/{stream}'
23           disabled: false
24
25 ################################
26 # job templates
27 ################################
28
29 - job-template:
30     name: 'yardstick-verify-{stream}'
31
32     disabled: '{obj:disabled}'
33
34     parameters:
35       - project-parameter:
36           project: '{project}'
37           branch: '{branch}'
38       - 'opnfv-build-ubuntu-defaults'
39
40     scm:
41       - git-scm-gerrit
42
43     triggers:
44       - gerrit:
45           server-name: 'gerrit.opnfv.org'
46           trigger-on:
47             - patchset-created-event:
48                 exclude-drafts: 'false'
49                 exclude-trivial-rebase: 'false'
50                 exclude-no-code-change: 'false'
51             - draft-published-event
52             - comment-added-contains-event:
53                 comment-contains-value: 'recheck'
54             - comment-added-contains-event:
55                 comment-contains-value: 'reverify'
56           projects:
57             - project-compare-type: 'ANT'
58               project-pattern: '{project}'
59               branches:
60                 - branch-compare-type: 'ANT'
61                   branch-pattern: '**/{branch}'
62
63     wrappers:
64       - ssh-agent-wrapper
65       - timeout:
66           timeout: 30
67           fail: true
68
69     builders:
70       - yardstick-unit-tests-python-27
71       - yardstick-unit-tests-python-3
72       - yardstick-functional-tests-python-27
73       - yardstick-functional-tests-python-3
74       - yardstick-coverage-tests
75       - yardstick-pep8-tests
76
77 - job-template:
78     name: 'yardstick-merge-{stream}'
79
80     disabled: '{obj:disabled}'
81
82     parameters:
83       - project-parameter:
84           project: '{project}'
85           branch: '{branch}'
86       - 'opnfv-build-ubuntu-defaults'
87       - string:
88           name: GS_URL
89           default: '$GS_BASE{gs-pathname}'
90           description: "Directory where the build artifact will be located upon the completion     of the build."
91
92     scm:
93       - git-scm
94
95     triggers:
96       - gerrit:
97           server-name: 'gerrit.opnfv.org'
98           trigger-on:
99             - change-merged-event
100             - comment-added-contains-event:
101                 comment-contains-value: 'remerge'
102           projects:
103             - project-compare-type: 'ANT'
104               project-pattern: '{project}'
105               branches:
106                 - branch-compare-type: 'ANT'
107                   branch-pattern: '**/{branch}'
108
109     wrappers:
110       - ssh-agent-wrapper
111       - timeout:
112           timeout: 30
113           fail: true
114
115     builders:
116       - yardstick-unit-tests-python-27
117       - yardstick-unit-tests-python-3
118       - yardstick-functional-tests-python-27
119       - yardstick-functional-tests-python-3
120       - yardstick-coverage-tests
121       - yardstick-pep8-tests
122
123 ################################
124 # job builders
125 ################################
126
127 - builder:
128     name: yardstick-unit-tests-python-27
129     builders:
130       - shell: |
131           #!/bin/bash
132           set -o errexit
133           set -o pipefail
134
135           sudo apt-get install -y build-essential python-dev python3-dev
136
137           echo "Running unit tests in Python 2.7 ..."
138           cd $WORKSPACE
139           tox -epy27
140
141 - builder:
142     name: yardstick-unit-tests-python-3
143     builders:
144       - shell: |
145           #!/bin/bash
146           set -o errexit
147           set -o pipefail
148
149           sudo apt-get install -y build-essential python-dev python3-dev
150
151           echo "Running unit tests in Python 3 ..."
152           cd $WORKSPACE
153           tox -epy3
154
155 - builder:
156     name: yardstick-functional-tests-python-27
157     builders:
158       - shell: |
159           #!/bin/bash
160           set -o errexit
161           set -o pipefail
162
163           sudo apt-get install -y build-essential python-dev python3-dev
164
165           echo "Running functional tests in Python 2.7 ..."
166           cd $WORKSPACE
167           tox -efunctional
168
169 - builder:
170     name: yardstick-functional-tests-python-3
171     builders:
172       - shell: |
173           #!/bin/bash
174           set -o errexit
175           set -o pipefail
176
177           sudo apt-get install -y build-essential python-dev python3-dev
178
179           echo "Running functional tests in Python 3 ..."
180           cd $WORKSPACE
181           tox -efunctional-py3
182
183 - builder:
184     name: yardstick-coverage-tests
185     builders:
186       - shell: |
187           #!/bin/bash
188           set -o errexit
189           set -o pipefail
190
191           sudo apt-get install -y build-essential python-dev python3-dev
192
193           echo "Running coverage tests ..."
194           cd $WORKSPACE
195           tox -ecoverage
196
197 - builder:
198     name: yardstick-pep8-tests
199     builders:
200       - shell: |
201           #!/bin/bash
202           set -o errexit
203           set -o pipefail
204
205           sudo apt-get install -y build-essential python-dev python3-dev
206
207           echo "Running style guidelines (PEP8) tests ..."
208           cd $WORKSPACE
209           tox -epep8