diff options
author | Jonathan Lebon <jlebon@redhat.com> | 2017-04-10 09:17:30 -0400 |
---|---|---|
committer | Jonathan Lebon <jlebon@redhat.com> | 2017-04-12 12:58:21 -0400 |
commit | dec2cc081854c2395c7651ab353b355426739877 (patch) | |
tree | aeb7db9e05ce339caf045add7de2d3febca2af30 /.redhat-ci.yml | |
parent | 86a6eacce8ba754853e0f7fa12059c33e3562962 (diff) | |
download | openshift-dec2cc081854c2395c7651ab353b355426739877.tar.gz openshift-dec2cc081854c2395c7651ab353b355426739877.tar.bz2 openshift-dec2cc081854c2395c7651ab353b355426739877.tar.xz openshift-dec2cc081854c2395c7651ab353b355426739877.zip |
repo: start testing PRs on Fedora Atomic Host
This patch adds a YAML file to hook up the repo to redhat-ci:
https://github.com/jlebon/redhat-ci
It is much like Travis CI: a YAML file describes the testing environment
as well as the tests themselves. However, it is more powerful than
Travis CI in terms of what it can provision. (For example, in this
patch, we're running two testsuites, each of them provisioning three
nodes and one container). For more details on supported fields, see:
https://github.com/jlebon/redhat-ci/blob/master/sample.redhat-ci.yml
The tests we add here simply check that the installer runs successfully
on Fedora Atomic Host and that the resulting cluster passes some basic
conformance tests. We target both v1.5.0-rc.0 and v3.6.0-alpha.0.
Diffstat (limited to '.redhat-ci.yml')
-rw-r--r-- | .redhat-ci.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.redhat-ci.yml b/.redhat-ci.yml new file mode 100644 index 000000000..d9849ed60 --- /dev/null +++ b/.redhat-ci.yml @@ -0,0 +1,45 @@ +--- + +cluster: + hosts: + - name: ocp-master + distro: fedora/25/atomic + - name: ocp-node1 + distro: fedora/25/atomic + - name: ocp-node2 + distro: fedora/25/atomic + container: + image: fedora:25 + +packages: + - gcc + - python-pip + - python-devel + - openssl-devel + - redhat-rpm-config + +context: 'fedora/25/atomic | origin/v1.5.0-rc.0' + +env: + OPENSHIFT_IMAGE_TAG: v1.5.0-rc.0 + +tests: + - pip install ansible==2.2.2.0 # F25 currently has 2.2.1, so install from pypi + - ansible -vvv -i .redhat-ci.inventory nodes -a 'rpm-ostree status' + - ansible-playbook -vvv -i .redhat-ci.inventory playbooks/byo/config.yml + # run a small subset of origin conformance tests to sanity check the cluster + # NB: we run it on the master since we may be in a different OSP network + - ssh ocp-master docker run --rm --net=host --privileged + -v /etc/origin/master/admin.kubeconfig:/config fedora:25 sh -c + '"dnf install -y origin-tests && + KUBECONFIG=/config /usr/libexec/origin/extended.test --ginkgo.v=1 + --ginkgo.noColor --ginkgo.focus=\"Services.*NodePort|EmptyDir\""' + +--- + +inherit: true + +context: 'fedora/25/atomic | origin/v3.6.0-alpha.0' + +env: + OPENSHIFT_IMAGE_TAG: v3.6.0-alpha.0 |