easyconfigs-it4i/.gitlab-ci.yml
2018-10-03 08:42:35 +02:00

34 lines
1.0 KiB
YAML

stages:
- test
- beautifier
docs:
stage: test
image: davidhrbac/docker-mdcheck:latest
script:
- mdl -r ~MD013 *.md
big_files:
stage: test
image: davidhrbac/docker-mdcheck:latest
script:
- find . -type f -not -path "*.git*" -size +10M
- find . -type f -not -path "*.git*" -size +10M -exec false {} +
other_files:
stage: test
image: davidhrbac/docker-mdcheck:latest
script:
- find . -type f -not -path "*.git*" ! -name "*.eb" ! -name "*.patch*" ! -name ".git*" ! -name "LICENSE" ! -name "*.md" ! -name "*.sh"
- find . -type f -not -path "*.git*" ! -name "*.eb" ! -name "*.patch*" ! -name ".git*" ! -name "LICENSE" ! -name "*.md" ! -name "*.sh" -exec false {} +
python_formatter:
stage: beautifier
image: davidhrbac/docker-pycheck:latest
script:
- which autopep8 || pip install autopep8
- which git || apt update && apt install -y git
- for i in `git whatchanged -4 | egrep "new|modified" | grep ".eb" | cut -d ":" -f 2 | cut -d " " -f 4`; do echo $i; autopep8 "$i"; done
only:
- master