The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

.gitlab-ci.yml 1.11 KB
Newer Older
1 2 3 4 5 6 7
variables:
  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"

cache:
  paths:
    - .cache/pip

8
before_script:
9 10 11
  - "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"
12 13

build:3:
14
  image: "python:3"
15
  stage: "build"
16
  script:
17
    - "./tools/local_install.sh --local-modules ~/bin"
18

19
pyflakes:3:
20
  image: "python:3"
21
  stage: "test"
22
  script:
23
      - "./tools/pyflakes.sh"
24

25
pyflakes-strict:3:
26 27 28 29 30
  image: "python:3"
  stage: "test"
  script:
    # TODO: move to .ci/requirements.txt
    - "pip install flake8-bugbear"
31
    - "./tools/pyflakes-strict.sh"
32

33
load-modules:3:
34
  image: "python:3"
35
  stage: "test"
36
  script:
37
    - "./tools/local_run.sh config update"
38 39 40

unittests:3:
  image: "python:3"
41
  stage: "test"
42
  script:
43
    - "./tools/run_tests.sh --no-modules"
44 45 46 47 48 49

unittests-modules:3:
  image: "python:3"
  stage: "test"
  allow_failure: true
  script:
50
    - "./tools/run_tests.sh --no-core"
51 52 53

doc:3:
  image: "python:3"
54
  stage: "deploy"
55 56
  script:
    - "cd ./docs && make html"