.gitlab-ci.yml 612 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
---
image: debian:stretch
stages:
  - lint

lint:
  stage: lint
  variables:
    LANG: 'en_US.UTF-8'
    LC_ALL: 'en_US.UTF-8'
    LANGUAGE: 'en_US.UTF-8'
  script:
  - apt-get -qq update
chirac's avatar
chirac committed
14
  - DEBIAN_FRONTEND=noninteractive apt-get -qq install -y locales python3-django python3-pylint-django
15
  - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
16
  - pylint3 --load-plugins pylint_django cotisations machines re2o logs topologie preferences search users || if [ $? -ne 1 ]; then exit 0; else exit 1; fi
17 18 19 20