mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-03-26 21:33:02 +00:00
35 lines
931 B
YAML
35 lines
931 B
YAML
---
|
|
language: python
|
|
python: "2.7"
|
|
|
|
# Use the new container infrastructure
|
|
sudo: false
|
|
|
|
# Install ansible
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- python-pip
|
|
|
|
install:
|
|
# Install prereqs
|
|
- pip install https://github.com/ansible/ansible/archive/devel.tar.gz
|
|
- pip install openshift
|
|
- pip list | grep openshift
|
|
|
|
# Start OpenShift
|
|
- docker run --publish 8443:8443 -d --name openshift openshift/origin:v3.7.1 start master --listen https://0.0.0.0:8443
|
|
- sleep 15
|
|
|
|
# Fetch a copy of the kube config file
|
|
- docker exec -it openshift cat /var/lib/origin/openshift.local.config/master/admin.kubeconfig >tests/konfig.json
|
|
|
|
- printf '[defaults]\nroles_path=../' >ansible.cfg
|
|
- echo "localhost ansible_connection=local ansible_python_interpreter=$(which python)">tests/inventory
|
|
|
|
script:
|
|
- ansible-playbook -i tests/inventory -vvv tests/test.yml
|
|
|
|
notifications:
|
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|