From 5aff18e106a317d56b57c50368de17d728439d86 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Mon, 27 Nov 2017 14:57:16 +0100 Subject: [PATCH] Test Weboob modules with CI --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72a7f91..18158fd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,3 +16,20 @@ lint:3: stage: "test" script: - "hooks/pre-commit" + +check_weboob:2.7: + image: "python:2.7" + stage: "test" + before_script: + # Only execute on scheduled CI + - if [ -z "${RUN_WEBOOB_TESTS}" ]; then exit; done + # Install weboob deps + - apt-get update && apt-get install -y git libffi-dev libxml2-dev libxslt-dev libyaml-dev libtiff-dev libjpeg-dev zlib1g-dev libfreetype6-dev libwebp-dev build-essential gcc g++ wget + - pip install -U setuptools + - pip install html2text simplejson BeautifulSoup nose + # Install weboob + - git clone https://git.weboob.org/weboob/devel.git weboob + - cd weboob; pip install . + script: + - if [ -z "${RUN_WEBOOB_TESTS}" ]; then exit; done + - python -m nose -c /dev/null -v modules/{entreparticuliers,explorimmo,foncia,leboncoin,logicimmo,pap,seloger}/test.py