.gitlab-ci.yml 1.03 KB
Newer Older
1
before_script:
2 3 4
  - "pip install -r .ci/requirements.txt"
  - "REQUIREMENTS=$(mktemp) && python setup.py requirements > ${REQUIREMENTS} && pip install -r ${REQUIREMENTS} && rm ${REQUIREMENTS}"
  - "pip install -r .ci/requirements_modules.txt"
5 6

build:3:
7
  image: "python:3"
8
  stage: "build"
9
  script:
10
    - "./tools/local_install.sh --local-modules ~/bin"
11

12
pyflakes:3:
13
  image: "python:3"
14
  stage: "test"
15
  script:
16
      - "./tools/pyflakes.sh"
17

18
pyflakes-strict:3:
19 20 21 22 23
  image: "python:3"
  stage: "test"
  script:
    # TODO: move to .ci/requirements.txt
    - "pip install flake8-bugbear"
24
    - "./tools/pyflakes-strict.sh"
25

26
load-modules:3:
27
  image: "python:3"
28
  stage: "test"
29
  script:
30
    - "./tools/local_run.sh weboob-config update"
31 32 33

unittests:3:
  image: "python:3"
34
  stage: "test"
35
  script:
36
    - "./tools/run_tests.sh --no-modules"
37 38 39 40 41 42

unittests-modules:3:
  image: "python:3"
  stage: "test"
  allow_failure: true
  script:
43
    - "./tools/run_tests.sh --no-core"
44 45 46

doc:3:
  image: "python:3"
47
  stage: "deploy"
48 49
  script:
    - "cd ./docs && make html"