Improve kata-runsh job
Add system package dependencies (build-essential, golang-1.10) and set GOPATH to $HOME for the zuul user which should magically work with the zuul git repo pathing. Additionally use shell with set -x. We switch to xenial so that we can use upstream docker-ce packages which the kata ci seems to expect. Depends-On: Ief0f20c2f1b42a5c23ed05f7185c58700f65b06e Change-Id: Ibb5cee5ba90662e53c39dcf686a52bcafe81c933
This commit is contained in:
parent
d729b17f1f
commit
279dadd282
@ -1,6 +1,30 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Install build-essential
|
||||
package:
|
||||
name: build-essential
|
||||
state: present
|
||||
become: yes
|
||||
- name: Install golang
|
||||
package:
|
||||
name: golang-1.10
|
||||
state: present
|
||||
become: yes
|
||||
- name: Make sure sources.list.d exists
|
||||
file:
|
||||
path: /etc/apt/sources.list.d
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
state: directory
|
||||
become: yes
|
||||
- name: Run kata setup.sh
|
||||
args:
|
||||
executable: /bin/bash
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
||||
command: ".ci/setup.sh"
|
||||
shell: |
|
||||
set -x
|
||||
export PATH=$PATH:/usr/lib/go-1.10/bin
|
||||
export CI=true
|
||||
export GOPATH=$HOME
|
||||
.ci/setup.sh
|
||||
|
@ -2,5 +2,11 @@
|
||||
tasks:
|
||||
- name: Run kata run.sh
|
||||
args:
|
||||
executable: /bin/bash
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
||||
command: ".ci/run.sh"
|
||||
shell: |
|
||||
set -x
|
||||
export PATH=$PATH:/usr/lib/go-1.10/bin
|
||||
export CI=true
|
||||
export GOPATH=$HOME
|
||||
.ci/run.sh
|
||||
|
@ -1452,5 +1452,5 @@
|
||||
timeout: 3600
|
||||
nodeset:
|
||||
nodes:
|
||||
- name: ubuntu-bionic
|
||||
label: ubuntu-bionic-vexxhost
|
||||
- name: ubuntu-xenial
|
||||
label: ubuntu-xenial-vexxhost
|
||||
|
Loading…
x
Reference in New Issue
Block a user