Skip to content
Snippets Groups Projects
Unverified Commit 0d9f5037 authored by Ben Kochie's avatar Ben Kochie
Browse files

Update CI requirements


* Explicitly install ansible for linting.
* Use pip to install ansible version.
* Cleanup obsolete tox.ini.
* Fix meta author to match galaxy namespace.

Signed-off-by: default avatarBen Kochie <superq@gmail.com>
parent 99cd23ab
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,8 @@ jobs:
executor: python
steps:
- checkout
- run: pip install ansible-lint yamllint flake8
- run: pip install ansible ansible-lint yamllint flake8
- run: mkdir -p .cache/roles && ln -s ../.. .cache/roles/${CIRCLE_PROJECT_REPONAME}
- run: ansible-lint
- run: yamllint .
- run: flake8
......@@ -21,12 +22,11 @@ jobs:
parameters:
ansible:
type: string
environment:
ANSIBLE: "<< parameters.ansible >>"
steps:
- checkout
- setup_remote_docker
- run: ln -s ~/project ~/${CIRCLE_PROJECT_REPONAME}
- run: pip install "ansible~=<<parameters.ansible >>.0"
- run: pip install -r test-requirements.txt
- run: molecule test -s default --destroy always
- run: |
......
---
galaxy_info:
author: Roman Demachkovych, Pawel Krupa
author: cloudalchemy
role_name: node_exporter
description: Prometheus Node Exporter
license: MIT
company: none
......
[tox]
minversion = 1.8
basepython = python3.8
envlist = py38-ansible{29,210}
skipsdist = true
[travis:env]
ANSIBLE=
2.9: ansible29
2.10: ansible210
[testenv]
passenv = GH_* DOCKER_HOST MOLECULE_*
deps =
-rtest-requirements.txt
ansible29: ansible<2.10
ansible210: ansible<2.11
commands =
{posargs:molecule test --all --destroy always}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment