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 <runcom@redhat.com>
This commit is contained in:
parent
c5098bb4a1
commit
80ad55405f
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue