Files
ansible-role-common/.drone.yml

31 lines
581 B
YAML
Raw Normal View History

2022-03-11 11:29:56 +13:00
---
kind: pipeline
name: default
steps:
2022-03-11 12:15:02 +13:00
- name: Test with Molecule
image: python:3.8
2022-03-11 11:29:56 +13:00
volumes:
- name: dockersock
path: /var/run
commands:
2022-03-11 12:15:02 +13:00
- apt-get update && apt-get install -y rsync
2022-03-11 12:19:01 +13:00
- mkdir ${DRONE_REPO_NAME}
- rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME}
- cd ${DRONE_REPO_NAME}
2022-03-11 12:15:02 +13:00
- python3 --version
- ansible --version
- molecule --version
- molecule test
2022-03-11 11:29:56 +13:00
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}