From 3da2914d4f82750daa868b5c7471deb088bf480e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 22 Jan 2020 13:27:31 +0100 Subject: [PATCH] format yaml file --- .drone.yml | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.drone.yml b/.drone.yml index ae411a7..1b3f512 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,19 +1,20 @@ - kind: pipeline - type: docker - name: default +kind: pipeline +type: docker +name: default - steps: - - name: shellcheck - image: python:3 - commands: - - apt update && apt upgrade -y && apt install -y shellcheck - - pip3 install pylint bandit mccabe - - for file in $(find . -type f -name \"*.sh\"); do shellcheck --format=gcc $file; done; - - find . -name "*.py" -exec python3 -m py_compile '{}' \; - - find . -name "*.py" -exec pylint '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi - - find . -name "*.py" -exec python3 -m mccabe --min 3 '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi - - bandit -r . +steps: +- name: shellcheck + image: python:3 + commands: + - apt update && apt upgrade -y && apt install -y shellcheck + - pip3 install pylint bandit mccabe + - for file in $(find . -type f -name \"*.sh\"); do shellcheck --format=gcc $file; done; + - find . -name "*.py" -exec python3 -m py_compile '{}' \; + - find . -name "*.py" -exec pylint '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi + - find . -name "*.py" -exec python3 -m mccabe --min 3 '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi + - bandit -r . + +trigger: + branch: + - master - trigger: - branch: - - master