From 80ad55405fdd7b74622dadb1593e14c0eee77809 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Wed, 17 May 2017 13:29:56 +0200 Subject: [PATCH] contrib: test: use upstream Golang to build on CentOS Cause the one shipped in CentOS is way too old at this point Signed-off-by: Antonio Murdaca --- contrib/test/crio-integration-playbook.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/contrib/test/crio-integration-playbook.yaml b/contrib/test/crio-integration-playbook.yaml index 0083ee65..80f2725a 100644 --- a/contrib/test/crio-integration-playbook.yaml +++ b/contrib/test/crio-integration-playbook.yaml @@ -82,6 +82,20 @@ - /root/src/github.com/opencontainers - /opt/cni/bin - /etc/cni/net.d + - /usr/local/go + - name: install Golang upstream in CentOS + shell: | + curl -fsSL "https://golang.org/dl/go1.8.1.linux-amd64.tar.gz" \ + | tar -xzC /usr/local + when: ansible_distribution == 'CentOS' + - name: Set custom Golang path for CentOS + lineinfile: + dest: /root/.bashrc + line: 'export PATH=/usr/local/go/bin:$PATH' + insertafter: 'EOF' + regexp: 'export PATH=/usr/local/go/bin:$PATH' + state: present + when: ansible_distribution == 'CentOS' - name: git clone bats repo git: repo: https://github.com/sstephenson/bats.git