.gitlab-ci.yml 1.04 KB
Newer Older
1 2
stages:
  - test
3
  - beautifier
4 5 6 7 8 9

docs:
  stage: test
  image: davidhrbac/docker-mdcheck:latest
  script:
  - mdl -r ~MD013 *.md
10 11 12 13 14

big_files:
  stage: test
  image: davidhrbac/docker-mdcheck:latest
  script:
15
  - find . -type f -not -path "*.git*" -size +10M
16
  - find . -type f -not -path "*.git*" -size +10M -exec false {} +
17 18 19 20 21

other_files:
  stage: test
  image: davidhrbac/docker-mdcheck:latest
  script:
22 23
  - 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 {} +
24

25 26
python_formatter:
  stage: beautifier
27
  image: davidhrbac/docker-pycheck:latest
28 29
  script:
  - which autopep8 || pip install autopep8
30
  - which git || apt update && apt install -y git
31
  - for i in `git whatchanged -4 | egrep "new|modified" | grep ".eb" | cut -d ":" -f 2 | cut -d " " -f 4`; do echo $i; autopep8 --aggressive --aggressive "$i"; done 
32 33
  only:
  - master