From af20e5bc4fa965e8de3b9d91a867287c823fe525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Mon, 25 Jun 2018 20:16:16 +0000 Subject: [PATCH] Add tests in the CI --- .gitlab-ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c5f0e63b..18929332 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ image: debian:stretch stages: - lint + - tests lint: stage: lint @@ -16,5 +17,15 @@ lint: - pylint3 --load-plugins pylint_django cotisations machines re2o logs topologie preferences search users || if [ $? -ne 1 ]; then exit 0; else exit 1; fi - - +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 + - python3 manage.py test