blob: d485b8ed72e9f39e2ac4856156fe9cbc6c4fa097 [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
Bartek Grzybowskif9368632020-09-07 16:52:22 +020034- parameter:
35 name: integration-terraform-version
36 parameters:
37 - string:
38 name: TERRAFORM_VERSION
39 default: '{terraform-version}'
40 description: 'Terraform version to install on minion'
41
Bartek Grzybowskibed68f72020-09-14 12:50:55 +020042- parameter:
43 name: integration-terragrunt-version
44 parameters:
45 - string:
46 name: TERRAGRUNT_VERSION
47 default: '{terragrunt-version}'
48 description: 'Terragrunt version to install on minion'
49
Lasse Kaihlavirta63453572020-11-09 18:41:34 +020050- parameter:
51 name: integration-unique-docker-tag
52 parameters:
53 - string:
54 name: UNIQUE_DOCKER_TAG
55 default: '{unique-docker-tag}'
56 description: 'Unique docker tag to identify specific version'
57
Gary Wu0bb72f52017-07-13 12:32:14 -070058- builder:
59 name: integration-install-robotframework
60 builders:
61 - shell:
62 !include-raw:
63 - include-raw-integration-install-robotframework.sh
64
65- builder:
66 name: integration-run-test
67 builders:
Gary Wub3440442018-09-27 10:47:38 -070068 - shell: "${WORKSPACE}/run-csit.sh ${TESTPLAN} ${TESTOPTIONS}"
Gary Wu0bb72f52017-07-13 12:32:14 -070069
70- builder:
71 name: integration-autorelease-fix-relativepaths
72 builders:
73 - shell: "${WORKSPACE}/autorelease/scripts/fix-relativepaths.sh"
74
75- builder:
76 name: integration-autorelease-set-version
77 builders:
78 - shell: "${WORKSPACE}/autorelease/scripts/set-version.sh"
79
Bartek Grzybowski2dd05542020-02-07 15:10:03 +010080- builder:
81 name: integration-install-vagrant
82 builders:
83 - shell: |
84 #!/bin/bash
85 set -ex # Fail build if any setup step fails
Bartek Grzybowskifb003df2020-02-11 10:26:49 +010086 sudo add-apt-repository --yes ppa:tiagohillebrandt/vagrant
87 sudo apt update
88 sudo apt --yes install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev vagrant
Bartek Grzybowski2dd05542020-02-07 15:10:03 +010089 vagrant plugin install vagrant-libvirt
90 vagrant plugin install vagrant-disksize
Bartek Grzybowski14333572020-06-09 14:27:47 +020091 vagrant plugin install vagrant-sshfs
Pawel Wieczorek20e6bd82020-07-20 13:09:00 +020092 vagrant plugin install vagrant-reload
Bartek Grzybowski2dd05542020-02-07 15:10:03 +010093 mkdir -p ~/.ssh
94
Bartek Grzybowskibcdbfa02020-03-31 06:56:10 -070095- builder:
Bartek Grzybowskif9368632020-09-07 16:52:22 +020096 name: integration-install-terraform
97 builders:
98 - shell: |
99 #!/bin/bash
100 set -ex
101 cd /tmp
102 wget -q https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip
103 unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip
104 sudo mv terraform /usr/local/bin/
105 terraform version
106
107- builder:
Bartek Grzybowskibed68f72020-09-14 12:50:55 +0200108 name: integration-install-terragrunt
109 builders:
110 - shell: |
111 #!/bin/bash
112 set -ex
113 cd /tmp
114 wget -q https://github.com/gruntwork-io/terragrunt/releases/download/v${TERRAGRUNT_VERSION}/terragrunt_linux_amd64
115 sudo mv terragrunt_linux_amd64 /usr/local/bin/terragrunt
116 sudo chmod +x /usr/local/bin/terragrunt
117 terragrunt --version
118
119- builder:
Bartek Grzybowskibcdbfa02020-03-31 06:56:10 -0700120 name: integration-docker-compose-logs
121 builders:
122 - shell: !include-raw: shell/docker-compose-logs.sh
123
Gary Wu0bb72f52017-07-13 12:32:14 -0700124- publisher:
125 name: integration-robot
126 publishers:
127 - robot:
128 output-path: 'archives'
129 other-files: ''
130 unstable-threshold: '{unstable-if}'
131 pass-threshold: '{pass-if}'
132 only-critical: false
Bartek Grzybowskibcdbfa02020-03-31 06:56:10 -0700133
134- publisher:
135 name: integration-docker-compose-logs
136 publishers:
137 - postbuildscript:
138 builders:
139 - role: BOTH
140 build-on:
141 - FAILURE
142 - SUCCESS
143 - UNSTABLE
144 build-steps:
145 - integration-docker-compose-logs