Files
ansible-role-common/.drone.yml

31 lines
589 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
- 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
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: {}