2017-09-19 22:50:37 +00:00
|
|
|
---
|
2017-09-26 11:27:18 +00:00
|
|
|
|
2017-09-19 22:50:37 +00:00
|
|
|
- name: Make testing output verbose so it can be converted to xunit
|
|
|
|
lineinfile:
|
|
|
|
dest: "{{ ansible_env.GOPATH }}/src/k8s.io/kubernetes/hack/make-rules/test.sh"
|
|
|
|
line: ' go test -v "${goflags[@]:+${goflags[@]}}" \'
|
|
|
|
regexp: ' go test \"\$'
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: set extra storage options
|
|
|
|
set_fact:
|
2017-09-28 15:43:15 +00:00
|
|
|
extra_storage_opts: " --storage-opt overlay.override_kernel_check=1"
|
2017-09-19 22:50:37 +00:00
|
|
|
when: ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS'
|
|
|
|
|
2017-09-29 18:49:12 +00:00
|
|
|
- name: ensure directory exists for e2e reports
|
|
|
|
file:
|
|
|
|
path: "{{ artifacts }}"
|
|
|
|
state: directory
|
2017-09-19 22:50:37 +00:00
|
|
|
|
|
|
|
- name: run integration tests
|
2017-09-29 18:49:12 +00:00
|
|
|
shell: "CGROUP_MANAGER=cgroupfs STORAGE_OPTS='--storage-driver=overlay{{ extra_storage_opts | default('') }}' make localintegration >& {{ artifacts }}/testout.txt"
|
2017-09-19 22:50:37 +00:00
|
|
|
args:
|
|
|
|
chdir: "{{ ansible_env.GOPATH }}/src/github.com/kubernetes-incubator/cri-o"
|
|
|
|
async: 5400
|
|
|
|
poll: 30
|