add two test cases: VSTF tu1 and tu3
[releng.git] / jjb / yardstick / yardstick-project-jobs.yml
1 ###################################################
2 # All the jobs except verify have been removed!
3 # They will only be enabled on request by projects!
4 ###################################################
5 - project:
6     name: yardstick-project-jobs
7
8     project: 'yardstick'
9
10     jobs:
11         - 'yardstick-verify-{stream}'
12         - 'yardstick-merge-{stream}'
13
14     stream:
15         - master:
16             branch: '{stream}'
17             gs-pathname: ''
18         - brahmaputra:
19             branch: 'stable/{stream}'
20             gs-pathname: '/{stream}'
21
22 ################################
23 # job templates
24 ################################
25
26 - job-template:
27     name: 'yardstick-verify-{stream}'
28
29     parameters:
30         - project-parameter:
31             project: '{project}'
32         - gerrit-parameter:
33             branch: '{branch}'
34         - 'ericsson-ca-build-1-defaults'
35
36     scm:
37         - gerrit-trigger-scm:
38             credentials-id: '{ssh-credentials}'
39             refspec: '$GERRIT_REFSPEC'
40             choosing-strategy: 'gerrit'
41
42     triggers:
43         - gerrit:
44             trigger-on:
45                 - patchset-created-event:
46                     exclude-drafts: 'false'
47                     exclude-trivial-rebase: 'false'
48                     exclude-no-code-change: 'false'
49                 - draft-published-event
50                 - comment-added-contains-event:
51                     comment-contains-value: 'recheck'
52                 - comment-added-contains-event:
53                     comment-contains-value: 'reverify'
54             projects:
55               - project-compare-type: 'ANT'
56                 project-pattern: '{project}'
57                 branches:
58                   - branch-compare-type: 'ANT'
59                     branch-pattern: '**/{branch}'
60     builders:
61         - shell: |
62             #!/bin/bash
63             set -o errexit
64             set -o pipefail
65
66             echo "Running unit tests..."
67             cd $WORKSPACE
68             virtualenv $WORKSPACE/yardstick_venv
69             source $WORKSPACE/yardstick_venv/bin/activate
70             easy_install -U setuptools
71             python setup.py develop
72             ./run_tests.sh
73             deactivate
74
75 - job-template:
76     name: 'yardstick-merge-{stream}'
77
78     parameters:
79         - project-parameter:
80             project: '{project}'
81         - gerrit-parameter:
82             branch: '{branch}'
83         - 'ericsson-ca-build-1-defaults'
84
85     scm:
86         - gerrit-trigger-scm:
87             credentials-id: '{ssh-credentials}'
88             refspec: ''
89             choosing-strategy: 'default'
90
91     triggers:
92         - gerrit:
93             trigger-on:
94                 - change-merged-event
95                 - comment-added-contains-event:
96                     comment-contains-value: 'remerge'
97             projects:
98               - project-compare-type: 'ANT'
99                 project-pattern: '{project}'
100                 branches:
101                     - branch-compare-type: 'ANT'
102                       branch-pattern: '**/{branch}'
103
104     builders:
105         - shell: |
106             #!/bin/bash
107             set -o errexit
108             set -o pipefail
109
110             echo "Running unit tests..."
111             cd $WORKSPACE
112             virtualenv $WORKSPACE/yardstick_venv
113             source $WORKSPACE/yardstick_venv/bin/activate
114             easy_install -U setuptools
115             python setup.py develop
116             ./run_tests.sh
117             deactivate