36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
before_script:
|
|
- "pip install -r requirements.txt"
|
|
- "pip install pylint"
|
|
- "curl -sL https://deb.nodesource.com/setup_6.x | bash -"
|
|
- "apt-get install -y nodejs"
|
|
- "npm install"
|
|
|
|
lint:2.7:
|
|
image: "python:2.7"
|
|
stage: "test"
|
|
script:
|
|
- "hooks/pre-commit"
|
|
|
|
lint:3:
|
|
image: "python: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
|