Add in molecule scenario

This commit is contained in:
2022-03-11 12:15:02 +13:00
parent 3282017a2a
commit fccf6923e0
5 changed files with 73 additions and 4 deletions

View File

@@ -3,14 +3,20 @@ kind: pipeline
name: default
steps:
- name: test
image: docker:dind
- name: Test with Molecule
image: python:3.8
volumes:
- name: dockersock
path: /var/run
commands:
- sleep 5 # give docker enough time to start
- docker ps -a
- 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