From e902eb5cb52edc7300c2e42da68f418b0e86d21b Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 26 Jun 2020 08:47:18 +0100 Subject: [PATCH] fix lint for yaml --- .gitlab-ci.yml | 6 ++++++ alert.yaml | 3 ++- blank.yaml | 3 ++- full_run_rand.yaml | 3 ++- full_run_seq.yaml | 3 ++- media.yaml | 3 ++- test.yaml | 3 ++- 7 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dbb371b..d0797f4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,3 +4,9 @@ lint-python: script: - pip install tox flake8 - flake8 +lint-yaml: + stage: test + image: python:latest + script: + - pip install yamllint + - yamllint *.yaml \ No newline at end of file diff --git a/alert.yaml b/alert.yaml index ecdee7e..3d3ca45 100644 --- a/alert.yaml +++ b/alert.yaml @@ -1,3 +1,4 @@ +--- process_name: test process step1: max: 1 @@ -9,4 +10,4 @@ step2: step3: max: 1 min: 1 - name: new_service \ No newline at end of file + name: new_service diff --git a/blank.yaml b/blank.yaml index ecdee7e..3d3ca45 100644 --- a/blank.yaml +++ b/blank.yaml @@ -1,3 +1,4 @@ +--- process_name: test process step1: max: 1 @@ -9,4 +10,4 @@ step2: step3: max: 1 min: 1 - name: new_service \ No newline at end of file + name: new_service diff --git a/full_run_rand.yaml b/full_run_rand.yaml index 23ff174..3f63c98 100644 --- a/full_run_rand.yaml +++ b/full_run_rand.yaml @@ -1,3 +1,4 @@ +--- process_name: test process step1: max: 1 @@ -82,4 +83,4 @@ step17: plugin: bibles step18: delay: 0.1 - name: load_service_sequential \ No newline at end of file + name: load_service_sequential diff --git a/full_run_seq.yaml b/full_run_seq.yaml index f2c10b8..d0c00c6 100644 --- a/full_run_seq.yaml +++ b/full_run_seq.yaml @@ -1,3 +1,4 @@ +--- process_name: test process step1: max: 1 @@ -82,4 +83,4 @@ step17: plugin: bibles step18: delay: 0.1 - name: load_service_random \ No newline at end of file + name: load_service_random diff --git a/media.yaml b/media.yaml index 4f0e15f..e28ec9f 100644 --- a/media.yaml +++ b/media.yaml @@ -1,3 +1,4 @@ +--- process_name: test process step1: max: 1 @@ -39,4 +40,4 @@ step11: name: media_play step12: delay: 5 - name: media_stop \ No newline at end of file + name: media_stop diff --git a/test.yaml b/test.yaml index b88da63..3da0342 100644 --- a/test.yaml +++ b/test.yaml @@ -1,3 +1,4 @@ +--- process_name: test process step1: max: 1 @@ -22,4 +23,4 @@ step5: plugin: songs step6: delay: 0.1 - name: load_service_sequential \ No newline at end of file + name: load_service_sequential