.gitlab-ci.yml 1.47 KB
Newer Older
1 2 3 4 5 6
before_script:
  - "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"

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

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

lint:2.7:
  image: "python:2.7"
20
  stage: "test"
21 22
  allow_failure: true
  script:
23 24 25 26
    - "./tools/weboob_lint.sh"

unittests:2.7:
  image: "python:2.7"
27
  stage: "test"
28
  script:
29 30 31 32 33 34 35 36
    - "./tools/run_tests.sh --no-modules"

unittests-modules:2.7:
  image: "python:2.7"
  stage: "test"
  allow_failure: true
  script:
    - "./tools/run_tests.sh --no-core"
37 38 39

doc:2.7:
  image: "python:2.7"
40
  stage: "deploy"
41 42 43 44
  script:
    - "cd ./docs && make html"

build:3:
45
  image: "python:3"
46
  stage: "build"
47
  script:
48
    - "./tools/local_install.sh -3 ~/bin"
49

50
pyflakes:3:
51
  image: "python:3"
52
  stage: "test"
53
  script:
54
      - "./tools/pyflakes.sh -3"
55 56 57

lint:3:
  image: "python:3"
58
  stage: "test"
59 60
  allow_failure: true
  script:
61
    - "./tools/weboob_lint.sh -3"
62 63 64

unittests:3:
  image: "python:3"
65
  stage: "test"
66
  script:
67 68 69 70 71 72 73 74
    - "./tools/run_tests.sh -3 --no-modules"

unittests-modules:3:
  image: "python:3"
  stage: "test"
  allow_failure: true
  script:
    - "./tools/run_tests.sh -3 --no-core"
75 76 77

doc:3:
  image: "python:3"
78
  stage: "deploy"
79 80
  script:
    - "cd ./docs && make html"