Merge pull request #522 from runcom/enable-centos-ci
contrib: test: fix CentOS CI
This commit is contained in:
commit
5addc8caf0
7 changed files with 24 additions and 24 deletions
|
@ -82,6 +82,28 @@
|
||||||
- /root/src/github.com/opencontainers
|
- /root/src/github.com/opencontainers
|
||||||
- /opt/cni/bin
|
- /opt/cni/bin
|
||||||
- /etc/cni/net.d
|
- /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: set sysctl vm.overcommit_memory=1 for CentOS
|
||||||
|
shell: |
|
||||||
|
sysctl -w vm.overcommit_memory=1
|
||||||
|
when: ansible_distribution == 'CentOS'
|
||||||
|
- name: disable selinux on CentOS :(
|
||||||
|
shell: |
|
||||||
|
setenforce 0
|
||||||
|
when: ansible_distribution == 'CentOS'
|
||||||
- name: git clone bats repo
|
- name: git clone bats repo
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/sstephenson/bats.git
|
repo: https://github.com/sstephenson/bats.git
|
||||||
|
@ -197,7 +219,7 @@
|
||||||
async: 3600
|
async: 3600
|
||||||
poll: 10
|
poll: 10
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: ansible_distribution == 'RedHat'
|
when: ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS'
|
||||||
- name: run integration tests RHEL with xunit results
|
- name: run integration tests RHEL with xunit results
|
||||||
shell: 'STORAGE_OPTS="--storage-driver=overlay2 --storage-opt overlay2.override_kernel_check=1" make localintegration'
|
shell: 'STORAGE_OPTS="--storage-driver=overlay2 --storage-opt overlay2.override_kernel_check=1" make localintegration'
|
||||||
args:
|
args:
|
||||||
|
@ -205,7 +227,7 @@
|
||||||
async: 3600
|
async: 3600
|
||||||
poll: 10
|
poll: 10
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: (ansible_distribution == 'RedHat' and xunit)
|
when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and xunit
|
||||||
- name: run integration tests Fedora
|
- name: run integration tests Fedora
|
||||||
shell: 'STORAGE_OPTS="--storage-driver=overlay2" make localintegration > testout.txt'
|
shell: 'STORAGE_OPTS="--storage-driver=overlay2" make localintegration > testout.txt'
|
||||||
args:
|
args:
|
||||||
|
@ -222,22 +244,6 @@
|
||||||
poll: 10
|
poll: 10
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: (ansible_distribution == 'Fedora' and xunit)
|
when: (ansible_distribution == 'Fedora' and xunit)
|
||||||
- name: run integration tests with devicemapper
|
|
||||||
shell: 'make localintegration > testout.txt'
|
|
||||||
args:
|
|
||||||
chdir: /root/src/github.com/kubernetes-incubator/cri-o
|
|
||||||
async: 3600
|
|
||||||
poll: 10
|
|
||||||
ignore_errors: yes
|
|
||||||
when: ansible_distribution == 'CentOS'
|
|
||||||
- name: run integration tests with devicemapper with xunit results
|
|
||||||
shell: 'make localintegration'
|
|
||||||
args:
|
|
||||||
chdir: /root/src/github.com/kubernetes-incubator/cri-o
|
|
||||||
async: 3600
|
|
||||||
poll: 10
|
|
||||||
ignore_errors: yes
|
|
||||||
when: (ansible_distribution == 'CentOS' and xunit)
|
|
||||||
- name: Make testing output directory
|
- name: Make testing output directory
|
||||||
file:
|
file:
|
||||||
path: /root/src/github.com/kubernetes-incubator/cri-o/reports
|
path: /root/src/github.com/kubernetes-incubator/cri-o/reports
|
||||||
|
|
1
test/testdata/container_config.json
vendored
1
test/testdata/container_config.json
vendored
|
@ -48,7 +48,6 @@
|
||||||
"cpu_period": 10000,
|
"cpu_period": 10000,
|
||||||
"cpu_quota": 20000,
|
"cpu_quota": 20000,
|
||||||
"cpu_shares": 512,
|
"cpu_shares": 512,
|
||||||
"memory_limit_in_bytes": 88000000,
|
|
||||||
"oom_score_adj": 30
|
"oom_score_adj": 30
|
||||||
},
|
},
|
||||||
"security_context": {
|
"security_context": {
|
||||||
|
|
|
@ -48,7 +48,6 @@
|
||||||
"cpu_period": 10000,
|
"cpu_period": 10000,
|
||||||
"cpu_quota": 20000,
|
"cpu_quota": 20000,
|
||||||
"cpu_shares": 512,
|
"cpu_shares": 512,
|
||||||
"memory_limit_in_bytes": 88000000,
|
|
||||||
"oom_score_adj": 30
|
"oom_score_adj": 30
|
||||||
},
|
},
|
||||||
"security_context": {
|
"security_context": {
|
||||||
|
|
1
test/testdata/container_config_logging.json
vendored
1
test/testdata/container_config_logging.json
vendored
|
@ -50,7 +50,6 @@
|
||||||
"cpu_period": 10000,
|
"cpu_period": 10000,
|
||||||
"cpu_quota": 20000,
|
"cpu_quota": 20000,
|
||||||
"cpu_shares": 512,
|
"cpu_shares": 512,
|
||||||
"memory_limit_in_bytes": 88000000,
|
|
||||||
"oom_score_adj": 30
|
"oom_score_adj": 30
|
||||||
},
|
},
|
||||||
"security_context": {
|
"security_context": {
|
||||||
|
|
1
test/testdata/container_config_seccomp.json
vendored
1
test/testdata/container_config_seccomp.json
vendored
|
@ -50,7 +50,6 @@
|
||||||
"cpu_period": 10000,
|
"cpu_period": 10000,
|
||||||
"cpu_quota": 20000,
|
"cpu_quota": 20000,
|
||||||
"cpu_shares": 512,
|
"cpu_shares": 512,
|
||||||
"memory_limit_in_bytes": 88000000,
|
|
||||||
"oom_score_adj": 30
|
"oom_score_adj": 30
|
||||||
},
|
},
|
||||||
"security_context": {
|
"security_context": {
|
||||||
|
|
1
test/testdata/container_redis.json
vendored
1
test/testdata/container_redis.json
vendored
|
@ -48,7 +48,6 @@
|
||||||
"cpu_period": 10000,
|
"cpu_period": 10000,
|
||||||
"cpu_quota": 20000,
|
"cpu_quota": 20000,
|
||||||
"cpu_shares": 512,
|
"cpu_shares": 512,
|
||||||
"memory_limit_in_bytes": 88000000,
|
|
||||||
"oom_score_adj": 30
|
"oom_score_adj": 30
|
||||||
},
|
},
|
||||||
"security_context": {
|
"security_context": {
|
||||||
|
|
1
test/testdata/container_redis_device.json
vendored
1
test/testdata/container_redis_device.json
vendored
|
@ -55,7 +55,6 @@
|
||||||
"cpu_period": 10000,
|
"cpu_period": 10000,
|
||||||
"cpu_quota": 20000,
|
"cpu_quota": 20000,
|
||||||
"cpu_shares": 512,
|
"cpu_shares": 512,
|
||||||
"memory_limit_in_bytes": 88000000,
|
|
||||||
"oom_score_adj": 30
|
"oom_score_adj": 30
|
||||||
},
|
},
|
||||||
"security_context": {
|
"security_context": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue