mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-12-13 06:20:18 +01:00
57 lines
1.7 KiB
YAML
57 lines
1.7 KiB
YAML
---
|
|
|
|
# Thanks to geerlingguy!
|
|
|
|
language: python
|
|
services: docker
|
|
|
|
env:
|
|
global:
|
|
- ROLE_NAME: k3s
|
|
- ROLE_OWNER: xanmanning
|
|
- REPO_OWNER: PyratLabs
|
|
- MOLECULE_SCENARIO: default
|
|
matrix:
|
|
- MOLECULE_DISTRO: geerlingguy/docker-debian10-ansible:latest
|
|
- MOLECULE_DISTRO: geerlingguy/docker-ubuntu2004-ansible:latest
|
|
|
|
# Test installing docker
|
|
- MOLECULE_DISTRO: geerlingguy/docker-centos7-ansible:latest
|
|
MOLECULE_SCENARIO: docker
|
|
- MOLECULE_DISTRO: geerlingguy/docker-ubuntu1804-ansible:latest
|
|
MOLECULE_SCENARIO: docker
|
|
- MOLECULE_DISTRO: geerlingguy/docker-amazonlinux2-ansible:latest
|
|
MOLECULE_SCENARIO: docker
|
|
|
|
# Test disabling all deployments
|
|
- MOLECULE_DISTRO: geerlingguy/docker-fedora31-ansible:latest
|
|
MOLECULE_SCENARIO: nodeploy
|
|
|
|
# Test multiple control nodes in control plane with PostgreSQL
|
|
- MOLECULE_DISTRO: geerlingguy/docker-fedora29-ansible:latest
|
|
MOLECULE_SCENARIO: highavailabilitydb
|
|
|
|
# Test multiple control nodes with auto deploying manifests
|
|
- MOLECULE_DISTRO: geerlingguy/docker-fedora30-ansible:latest
|
|
MOLECULE_SCENARIO: autodeploy
|
|
|
|
# Test multiple control nodes in control plane with Etcd
|
|
- MOLECULE_DISTRO: geerlingguy/docker-centos8-ansible:latest
|
|
MOLECULE_SCENARIO: highavailabilityetcd
|
|
|
|
install:
|
|
# Install test dependencies.
|
|
- pip install -r molecule/requirements.txt
|
|
|
|
before_script:
|
|
# Use actual Ansible Galaxy role name for the project directory.
|
|
- cd ../
|
|
- mv ansible-role-${ROLE_NAME} ${ROLE_OWNER}.${ROLE_NAME}
|
|
- cd ${ROLE_OWNER}.${ROLE_NAME}
|
|
|
|
script:
|
|
# Run tests.
|
|
- molecule test --scenario-name "${MOLECULE_SCENARIO}"
|
|
|
|
notifications:
|
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|