fix(ci): Update test setup to work with molecule v3

This commit is contained in:
2020-03-02 22:50:38 +00:00
parent a3964636fc
commit 2c522f29b9
6 changed files with 21 additions and 12 deletions

View File

@@ -22,8 +22,8 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get install -y docker
python -m pip install --upgrade pip
pip install -r requirements.txt
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
- name: Test with molecule
run: |
molecule test -s ${{ matrix.scenario }}

View File

@@ -1,3 +1,4 @@
---
extends: default
rules:

View File

@@ -3,8 +3,11 @@ dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
lint: |
set -e
yamllint .
ansible-lint
flake8
platforms:
- name: centos-7
image: centos:7

View File

@@ -3,8 +3,11 @@ dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
lint: |
set -e
yamllint .
ansible-lint
flake8
platforms:
- name: centos-7
image: centos:7

View File

@@ -3,8 +3,11 @@ dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
lint: |
set -e
yamllint .
ansible-lint
flake8
platforms:
- name: centos-7
image: centos:7

View File

@@ -1,5 +1,4 @@
ansible
ansible-lint
flake8
molecule[docker]
yamllint
molecule[docker,lint]
pytest
testinfra