blob: df48a4cd1ff6690ea24a8210f500c7ba5f0381f1 [file] [log] [blame]
Gary Wu0bb72f52017-07-13 12:32:14 -07001---
2- parameter:
3 name: integration-test-plan
4 parameters:
5 - string:
6 name: TESTPLAN
7 default: '{test-plan}'
8 description: 'General test plan we will run unless stream-specific one is found'
9
10- parameter:
11 name: integration-test-options
12 parameters:
13 - string:
14 name: TESTOPTIONS
15 default: '{test-options}'
16 description: 'Robot command options'
17
Jessica Wagantallf3e2db72017-11-14 00:52:23 -080018- parameter:
19 name: html-publisher-dir
20 parameters:
21 - string:
22 name: HTMLDIR
23 default: '{html-dir}'
24 description: 'Directory location to be used by HTML publisher plugin'
25
26- parameter:
27 name: html-publisher-files
28 parameters:
29 - string:
30 name: HTMLFILES
31 default: '{html-files}'
32 description: 'File name to be used by HTML publisher plugin to produce the report'
33
Gary Wu0bb72f52017-07-13 12:32:14 -070034- builder:
35 name: integration-install-robotframework
36 builders:
37 - shell:
38 !include-raw:
39 - include-raw-integration-install-robotframework.sh
40
41- builder:
42 name: integration-run-test
43 builders:
Gary Wub3440442018-09-27 10:47:38 -070044 - shell: "${WORKSPACE}/run-csit.sh ${TESTPLAN} ${TESTOPTIONS}"
Gary Wu0bb72f52017-07-13 12:32:14 -070045
46- builder:
Lasse Kaihlavirtaf8191142020-11-11 19:27:57 +020047 name: integration-run-project-test
48 builders:
Lasse Kaihlavirtabc08d652020-11-18 19:47:24 +020049 - shell: "${WORKSPACE}/csit/run-project-csit.sh ${TESTOPTIONS}"
Lasse Kaihlavirtaf8191142020-11-11 19:27:57 +020050
51- builder:
Gary Wu0bb72f52017-07-13 12:32:14 -070052 name: integration-autorelease-fix-relativepaths
53 builders:
54 - shell: "${WORKSPACE}/autorelease/scripts/fix-relativepaths.sh"
55
56- builder:
57 name: integration-autorelease-set-version
58 builders:
59 - shell: "${WORKSPACE}/autorelease/scripts/set-version.sh"
60
Bartek Grzybowski2dd05542020-02-07 15:10:03 +010061- builder:
62 name: integration-install-vagrant
63 builders:
64 - shell: |
65 #!/bin/bash
66 set -ex # Fail build if any setup step fails
Bartek Grzybowskifb003df2020-02-11 10:26:49 +010067 sudo add-apt-repository --yes ppa:tiagohillebrandt/vagrant
68 sudo apt update
69 sudo apt --yes install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev vagrant
Bartek Grzybowski2dd05542020-02-07 15:10:03 +010070 vagrant plugin install vagrant-libvirt
71 vagrant plugin install vagrant-disksize
Bartek Grzybowski14333572020-06-09 14:27:47 +020072 vagrant plugin install vagrant-sshfs
Pawel Wieczorek20e6bd82020-07-20 13:09:00 +020073 vagrant plugin install vagrant-reload
Bartek Grzybowski2dd05542020-02-07 15:10:03 +010074 mkdir -p ~/.ssh
75
Bartek Grzybowskibcdbfa02020-03-31 06:56:10 -070076- builder:
77 name: integration-docker-compose-logs
78 builders:
79 - shell: !include-raw: shell/docker-compose-logs.sh
80
Gary Wu0bb72f52017-07-13 12:32:14 -070081- publisher:
82 name: integration-robot
83 publishers:
84 - robot:
85 output-path: 'archives'
Lasse Kaihlavirtabc08d652020-11-18 19:47:24 +020086 output-xml: '**/output.xml'
87 report-html: '**/report.html'
88 log-html: '**/log.html'
Gary Wu0bb72f52017-07-13 12:32:14 -070089 other-files: ''
90 unstable-threshold: '{unstable-if}'
91 pass-threshold: '{pass-if}'
92 only-critical: false
Bartek Grzybowskibcdbfa02020-03-31 06:56:10 -070093
94- publisher:
Lasse Kaihlavirtaf8191142020-11-11 19:27:57 +020095 name: integration-project-robot
96 publishers:
97 - robot:
98 output-path: 'csit/archives'
Lasse Kaihlavirtabc08d652020-11-18 19:47:24 +020099 output-xml: '**/output.xml'
100 report-html: '**/report.html'
101 log-html: '**/log.html'
Lasse Kaihlavirtaf8191142020-11-11 19:27:57 +0200102 other-files: ''
103 unstable-threshold: '{unstable-if}'
104 pass-threshold: '{pass-if}'
105 only-critical: false
106
107- publisher:
Bartek Grzybowskibcdbfa02020-03-31 06:56:10 -0700108 name: integration-docker-compose-logs
109 publishers:
110 - postbuildscript:
111 builders:
112 - role: BOTH
113 build-on:
114 - FAILURE
115 - SUCCESS
116 - UNSTABLE
117 build-steps:
118 - integration-docker-compose-logs