Test Weboob modules with CI

This commit is contained in:
Lucas Verney 2017-11-27 14:57:16 +01:00
parent 56f5fdf1b2
commit 5aff18e106
1 changed files with 17 additions and 0 deletions

View File

@ -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