mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 08:23:06 -06:00
DCD-386: Enable Bitbucket Pipelines testing with Molecule.
This commit is contained in:
@@ -2,9 +2,14 @@
|
||||
|
||||
set -e
|
||||
|
||||
# Use Ansible from virtualenv if provided
|
||||
if [[ -f .venv/bin/ansible ]]; then
|
||||
source .venv/bin/activate
|
||||
pip install molecule docker
|
||||
fi
|
||||
|
||||
for role in `find roles/ -name molecule`; do
|
||||
pushd `dirname $role`
|
||||
molecule test --all
|
||||
popd
|
||||
done
|
||||
|
||||
|
||||
13
bitbucket-pipelines.yml
Normal file
13
bitbucket-pipelines.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
|
||||
image: atlassian/default-image:2
|
||||
|
||||
pipelines:
|
||||
default:
|
||||
- step:
|
||||
services:
|
||||
- docker
|
||||
script:
|
||||
- apt-get update && apt-get install -y virtualenv python-dev
|
||||
- ./bin/install-ansible
|
||||
- ./bin/run-all-tests
|
||||
Reference in New Issue
Block a user