Files
ansible-role-common/.drone.yml
2022-03-11 12:15:02 +13:00

31 lines
589 B
YAML

---
kind: pipeline
name: default
steps:
- name: Test with Molecule
image: python:3.8
volumes:
- name: dockersock
path: /var/run
commands:
- apt-get update && apt-get install -y rsync
- mkdir $BITBUCKET_REPO_SLUG
- rsync -a . $BITBUCKET_REPO_SLUG --exclude $BITBUCKET_REPO_SLUG
- cd $BITBUCKET_REPO_SLUG
- python3 --version
- ansible --version
- molecule --version
- molecule test
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}