format yaml file

This commit is contained in:
Torma Kristóf 2020-01-22 13:27:31 +01:00
parent ed7ba5f795
commit 3da2914d4f
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
1 changed files with 18 additions and 17 deletions

View File

@ -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