Skip to content
Snippets Groups Projects
Commit 5dcd893c authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: replace Molecule's deprecated lint feature with custom linting

parent 59677558
No related branches found
No related tags found
No related merge requests found
Pipeline #3959 failed
...@@ -28,7 +28,11 @@ test-job: ...@@ -28,7 +28,11 @@ test-job:
- git clone https://gitlab+deploy-token-25:${VAULT_ACCESS_TOKEN}@git.slub-dresden.de/slub-referat-2-3/ansible_vaults.git ../ansible_vaults/; \ - git clone https://gitlab+deploy-token-25:${VAULT_ACCESS_TOKEN}@git.slub-dresden.de/slub-referat-2-3/ansible_vaults.git ../ansible_vaults/; \
# run Molecule tests # run Molecule tests
- molecule syntax --scenario-name default - molecule syntax --scenario-name default
- molecule lint --scenario-name default # We cannot use `molecule lint` anymore because:
# - https://github.com/ansible-community/molecule/pull/3802 "Remove lint command"
# - https://github.com/ansible-community/molecule/discussions/3825#discussioncomment-4908366
- yamllint --strict --format colored ./
- ansible-lint --format full --profile production --strict --force-color ./
- molecule create --scenario-name default - molecule create --scenario-name default
- molecule converge --scenario-name default - molecule converge --scenario-name default
- molecule idempotence --scenario-name default - molecule idempotence --scenario-name default
......
...@@ -4,10 +4,6 @@ dependency: ...@@ -4,10 +4,6 @@ dependency:
enabled: false enabled: false
driver: driver:
name: vagrant name: vagrant
lint: |
set -e
yamllint .
ansible-lint -x no-loop-var-prefix,command-instead-of-module,package-latest
platforms: platforms:
# Check out the documentation at # Check out the documentation at
# https://github.com/ansible-community/molecule-vagrant#documentation # https://github.com/ansible-community/molecule-vagrant#documentation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment