Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 1 | --- |
| 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 Wagantall | f3e2db7 | 2017-11-14 00:52:23 -0800 | [diff] [blame] | 18 | - 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 Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 34 | - 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 Wu | b344044 | 2018-09-27 10:47:38 -0700 | [diff] [blame] | 44 | - shell: "${WORKSPACE}/run-csit.sh ${TESTPLAN} ${TESTOPTIONS}" |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 45 | |
| 46 | - builder: |
| 47 | name: integration-autorelease-fix-relativepaths |
| 48 | builders: |
| 49 | - shell: "${WORKSPACE}/autorelease/scripts/fix-relativepaths.sh" |
| 50 | |
| 51 | - builder: |
| 52 | name: integration-autorelease-set-version |
| 53 | builders: |
| 54 | - shell: "${WORKSPACE}/autorelease/scripts/set-version.sh" |
| 55 | |
Bartek Grzybowski | 2dd0554 | 2020-02-07 15:10:03 +0100 | [diff] [blame] | 56 | - builder: |
| 57 | name: integration-install-vagrant |
| 58 | builders: |
| 59 | - shell: | |
| 60 | #!/bin/bash |
| 61 | set -ex # Fail build if any setup step fails |
Bartek Grzybowski | fb003df | 2020-02-11 10:26:49 +0100 | [diff] [blame] | 62 | sudo add-apt-repository --yes ppa:tiagohillebrandt/vagrant |
| 63 | sudo apt update |
| 64 | sudo apt --yes install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev vagrant |
Bartek Grzybowski | 2dd0554 | 2020-02-07 15:10:03 +0100 | [diff] [blame] | 65 | vagrant plugin install vagrant-libvirt |
| 66 | vagrant plugin install vagrant-disksize |
Bartek Grzybowski | 1433357 | 2020-06-09 14:27:47 +0200 | [diff] [blame] | 67 | vagrant plugin install vagrant-sshfs |
Bartek Grzybowski | 2dd0554 | 2020-02-07 15:10:03 +0100 | [diff] [blame] | 68 | mkdir -p ~/.ssh |
| 69 | |
Bartek Grzybowski | bcdbfa0 | 2020-03-31 06:56:10 -0700 | [diff] [blame] | 70 | - builder: |
| 71 | name: integration-docker-compose-logs |
| 72 | builders: |
| 73 | - shell: !include-raw: shell/docker-compose-logs.sh |
| 74 | |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 75 | - publisher: |
| 76 | name: integration-robot |
| 77 | publishers: |
| 78 | - robot: |
| 79 | output-path: 'archives' |
| 80 | other-files: '' |
| 81 | unstable-threshold: '{unstable-if}' |
| 82 | pass-threshold: '{pass-if}' |
| 83 | only-critical: false |
Bartek Grzybowski | bcdbfa0 | 2020-03-31 06:56:10 -0700 | [diff] [blame] | 84 | |
| 85 | - publisher: |
| 86 | name: integration-docker-compose-logs |
| 87 | publishers: |
| 88 | - postbuildscript: |
| 89 | builders: |
| 90 | - role: BOTH |
| 91 | build-on: |
| 92 | - FAILURE |
| 93 | - SUCCESS |
| 94 | - UNSTABLE |
| 95 | build-steps: |
| 96 | - integration-docker-compose-logs |