fix molecule setup
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2019-05-26 17:22:41 +02:00
parent 91b2c473b6
commit c1fcaf7cee
4 changed files with 8 additions and 10 deletions

View File

@ -58,10 +58,7 @@ local PipelineDeployment = {
},
commands: [
"/bin/bash /docker-entrypoint.sh",
"molecule create --scenario-name ec2-centos-7",
"molecule converge --scenario-name ec2-centos-7",
"molecule verify --scenario-name ec2-centos-7",
"molecule destroy --scenario-name ec2-centos-7",
"molecule test --scenario-name ec2-centos-7",
],
},
],

View File

@ -55,10 +55,7 @@ steps:
image: xoxys/molecule:ec2-linux-amd64
commands:
- /bin/bash /docker-entrypoint.sh
- molecule create --scenario-name ec2-centos-7
- molecule converge --scenario-name ec2-centos-7
- molecule verify --scenario-name ec2-centos-7
- molecule destroy --scenario-name ec2-centos-7
- molecule test --scenario-name ec2-centos-7
environment:
ANSIBLE_ROLES_PATH: /drone/src
AWS_ACCESS_KEY_ID:
@ -114,6 +111,6 @@ depends_on:
---
kind: signature
hmac: 245fb3cb141388467c22c1fb0949baf109e53f11a8bb5d1547fa156040e7e692
hmac: 2956b26d8b75957c13cbfb8873356b4cc6b8c9935fa8efa2148f4473a604096d
...

View File

@ -8,10 +8,14 @@ platforms:
image: ami-04cf43aca3e6f3de3
instance_type: t2.micro
vpc_subnet_id: subnet-9b6896f1
lint:
name: yamllint
enabled: False
provisioner:
name: ansible
lint:
name: ansible-lint
enabled: False
verifier:
name: testinfra
lint:

View File

@ -13,8 +13,8 @@ def test_docker_is_installed(host):
docker = host.package("docker")
assert docker.is_installed
def test_docker_running_and_enabled(host):
docker = host.service("docker")
assert docker.is_running
assert docker.is_enabled