.gitlab-ci.yml 1.02 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 27
lint:3:
  image: "python:3"
28
  stage: "test"
29 30
  allow_failure: true
  script:
31
    - "./tools/weboob_lint.sh"
32 33 34

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

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

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