Skip to content
Snippets Groups Projects
Commit 1be5ff21 authored by Lars Beckers's avatar Lars Beckers
Browse files

Merge branch 'ci-config' into 'master'

Add CI config

See merge request !8
parents 71d74583 e3168dfe
Branches
No related tags found
1 merge request!8Add CI config
Pipeline #1340 passed
parseable: true
quiet: true
use_default_rules: true
skip_list:
- '204' # line length is checked by yamllint
- '401' # git checkout must contain explicit version
- '701' # 7xx is about ansible galaxy guidelines
- '702'
- '703'
---
image: registry.git.fsmpi.rwth-aachen.de/infra/ci-containers/fsmpi-ansible:buster
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- export LANG=en_US.UTF-8
- chmod o-w .
- apt-get -qq update && apt-get -qq install -y ansible-lint ripgrep
- ansible --version
- ansible-lint --version
- yamllint --version
stages:
- test
test:
stage: test
script:
- yamllint .
- ansible-lint ./*/
# yamllint disable-line rule:line-length
- "! rg --fixed-strings 'passwordstore' ./*/templates"
...@@ -14,6 +14,10 @@ rules: ...@@ -14,6 +14,10 @@ rules:
forbid-in-block-mappings: true forbid-in-block-mappings: true
line-length: line-length:
level: warning level: warning
allow-non-breakable-inline-mappings: true
octal-values: octal-values:
forbid-implicit-octal: true forbid-implicit-octal: true
level: warning level: error
# quoted-strings: enable
truthy:
level: error
...@@ -89,6 +89,7 @@ ...@@ -89,6 +89,7 @@
- meta: flush_handlers - meta: flush_handlers
# yamllint disable-line rule:line-length
- name: ensure the global spam filter and learning sieve script have correct permissions - name: ensure the global spam filter and learning sieve script have correct permissions
file: file:
state: file state: file
......
--- ---
# yamllint disable-line rule:line-length
- import_tasks: postgres.yml db_user="{{ prosody_user }}" db_name="{{ prosody_db }}" - import_tasks: postgres.yml db_user="{{ prosody_user }}" db_name="{{ prosody_db }}"
- name: ensure prosody is installed - name: ensure prosody is installed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment