Initial commit

This commit is contained in:
Sonny Bakker 2020-11-07 21:08:36 +01:00
commit a156d52184
14 changed files with 2721 additions and 0 deletions

41
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,41 @@
stages:
- lint
- test
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- .cache/pip
- node_modules/
lint:
stage: lint
image: python:3.7
before_script:
- pip install ansible ansible-lint --quiet
script:
- ansible-lint playbook.yml
only:
refs:
- development
- merge_requests
pretty-lint:
stage: lint
image: node:12
before_script:
- npm install
script:
- npx prettier "roles/**/*.yml" --check
only:
refs:
- development
- merge_requests
syntax-test:
stage: test
image: python:3.7
before_script:
- pip install ansible ansible-lint --quiet
script:
- ansible-playbook playbook.yml --syntax-check