8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 04:43:10 +00:00
re2o/.gitlab-ci.yml

33 lines
1.1 KiB
YAML
Raw Normal View History

2017-11-11 21:34:11 +00:00
---
image: debian:stretch
stages:
- lint
2018-06-25 20:16:16 +00:00
- tests
2017-11-11 21:34:11 +00:00
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
2017-12-17 15:31:21 +00:00
- DEBIAN_FRONTEND=noninteractive apt-get -qq install -y locales python3-django python3-pylint-django
2017-11-11 21:34:11 +00:00
- 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
- pylint3 --load-plugins pylint_django cotisations machines re2o logs topologie preferences search users || if [ $? -ne 1 ]; then exit 0; else exit 1; fi
2017-11-11 21:34:11 +00:00
2018-06-25 20:16:16 +00:00
tests:
stage: tests
variables:
LANG: 'en_US.UTF-8'
LC_ALL: 'en_US.UTF-8'
LANGUAGE: 'en_US.UTF-8'
script:
- apt-get -qq update
- DEBIAN_FRONTEND=noninteractive apt-get -qq install -y locales
- 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
- ./install_re2o.sh auto-setup
2018-06-26 12:28:39 +00:00
- cat re2o/settings_local.py
2018-06-25 20:16:16 +00:00
- python3 manage.py test