format yaml file
This commit is contained in:
parent
ed7ba5f795
commit
3da2914d4f
35
.drone.yml
35
.drone.yml
@ -1,19 +1,20 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: shellcheck
|
- name: shellcheck
|
||||||
image: python:3
|
image: python:3
|
||||||
commands:
|
commands:
|
||||||
- apt update && apt upgrade -y && apt install -y shellcheck
|
- apt update && apt upgrade -y && apt install -y shellcheck
|
||||||
- pip3 install pylint bandit mccabe
|
- pip3 install pylint bandit mccabe
|
||||||
- for file in $(find . -type f -name \"*.sh\"); do shellcheck --format=gcc $file; done;
|
- 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 python3 -m py_compile '{}' \;
|
||||||
- find . -name "*.py" -exec pylint '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi
|
- 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
|
- find . -name "*.py" -exec python3 -m mccabe --min 3 '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi
|
||||||
- bandit -r .
|
- bandit -r .
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
|
Loading…
Reference in New Issue
Block a user