mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-06-10 10:36:16 +00:00
40 lines
924 B
YAML
40 lines
924 B
YAML
---
|
|
language: python
|
|
python: "2.7"
|
|
|
|
# Use the new container infrastructure
|
|
sudo: false
|
|
|
|
# Install ansible
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- python-pip
|
|
|
|
install:
|
|
# Install ansible
|
|
- pip install https://github.com/ansible/ansible/archive/devel.tar.gz
|
|
|
|
# Check ansible version
|
|
- ansible --version
|
|
|
|
- pip install . -e
|
|
|
|
# Create ansible.cfg with correct roles_path
|
|
- printf '[defaults]\nroles_path=../' >ansible.cfg
|
|
|
|
# Start OpenShift
|
|
- docker run --publish 8443:8443 -d --name openshift openshift/origin:v3.6.0 start master --listen https://0.0.0.0:8443
|
|
|
|
# Wait for the container state to be running
|
|
- sleep 15
|
|
|
|
# Fetch a copy of the kube config file
|
|
- docker exec -it openshift cat /var/lib/origin/openshift.local.config/master/admin.kubeconfig >konfig.json
|
|
|
|
script:
|
|
- ansible-playbook tests/test.yml -i tests/inventory
|
|
|
|
notifications:
|
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|