Skip to content
Snippets Groups Projects
Commit 3bd0ca74 authored by cloudalchemybot's avatar cloudalchemybot
Browse files

:robot: sync with cloudalchemy/skeleton (SHA: fc18c382): ansible-lint 5+ fixes (#13)

parent c2401cfe
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,10 @@ executors: ...@@ -5,6 +5,10 @@ executors:
python: python:
docker: docker:
- image: cimg/python:3.10 - image: cimg/python:3.10
python_large:
docker:
- image: cimg/python:3.9
resource_class: large
publisher: publisher:
docker: docker:
- image: quay.io/cloudalchemy/publisher:latest - image: quay.io/cloudalchemy/publisher:latest
...@@ -15,12 +19,12 @@ jobs: ...@@ -15,12 +19,12 @@ jobs:
steps: steps:
- checkout - checkout
- run: pip install ansible ansible-lint yamllint flake8 - run: pip install ansible ansible-lint yamllint flake8
- run: ansible-lint - run: ansible-lint .
- run: yamllint . - run: yamllint .
- run: flake8 - run: flake8
test: test:
executor: python executor: python_large
parameters: parameters:
ansible: ansible:
type: string type: string
......
--- ---
queue_rules:
- name: default
conditions:
# These need to stay in sync with auto-maintenance/.github/settings.yml.
- "check-success=/circleci: lint"
- "check-success=/circleci: test-2.9-default"
- "check-success=/circleci: test-2.9-alternative"
- "check-success=/circleci: test-2.10-default"
- "check-success=/circleci: test-2.10-alternative"
- "check-success=/circleci: test-4.10-default"
- "check-success=/circleci: test-4.10-alternative"
- "check-success=/circleci: test-5.1-default"
- "check-success=/circleci: test-5.1-alternative"
pull_request_rules: pull_request_rules:
- name: automatic merge and new release from cloudalchemybot - name: automatic merge and new release from cloudalchemybot
conditions: conditions:
- "status-success=Travis CI - Pull Request"
- status-success=WIP - status-success=WIP
- head~=autoupdate|skeleton - head~=autoupdate|skeleton
- author=cloudalchemybot - author=cloudalchemybot
# These need to stay in sync with auto-maintenance/.github/settings.yml.
- "check-success=/circleci: lint"
- "check-success=/circleci: test-2.9-default"
- "check-success=/circleci: test-2.9-alternative"
- "check-success=/circleci: test-2.10-default"
- "check-success=/circleci: test-2.10-alternative"
- "check-success=/circleci: test-4.10-default"
- "check-success=/circleci: test-4.10-alternative"
- "check-success=/circleci: test-5.1-default"
- "check-success=/circleci: test-5.1-alternative"
actions: actions:
merge: queue:
method: squash method: squash
strict: true name: default
- name: delete head branch after merge
conditions: []
actions:
delete_head_branch: {}
...@@ -85,11 +85,11 @@ We provide an example site that demonstrates a full monitoring solution based on ...@@ -85,11 +85,11 @@ We provide an example site that demonstrates a full monitoring solution based on
## Local Testing ## Local Testing
The preferred way of locally testing the role is to use Docker and [molecule](https://github.com/ansible-community/molecule) (v3.x). You will have to install Docker on your system. See "Get started" for a Docker package suitable for your system. Running your tests is as simple as executing `molecule test`. The preferred way of locally testing the role is to use Docker and [molecule](https://github.com/ansible-community/molecule) (v3.x). You will have to install Docker on your system. See "Get started" for a Docker package suitable to for your system. Running your tests is as simple as executing `molecule test`.
## Continuous Integration ## Continuous Integration
Combining molecule and circle CI allows us to test how new PRs will behave when used with multiple ansible versions and multiple operating systems. This also allows use to create test scenarios for different role configurations. As a result we have quite a large test matrix which can take more time than local testing, so please be patient. Combining molecule and circle CI allows us to test how new PRs will behave when used with multiple ansible versions and multiple operating systems. This also allows use to create test scenarios for different role configurations. As a result we have a quite large test matrix which can take more time than local testing, so please be patient.
## Contributing ## Contributing
......
molecule>=3.0.0 # temporarily lock versions of molecule and ansible-compat to avoid a bug:
# https://github.com/ansible-community/ansible-compat/issues/114
ansible-compat==0.5.0
molecule==3.5.2
molecule-docker molecule-docker
docker docker
ansible-lint>=3.4.0 ansible-lint>=3.4.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment