.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"
Florent Fourcot's avatar
Florent Fourcot committed
8
  stage: "build"
9
10
  script:
    - "./tools/local_install.sh ~/bin"
11

Florent Fourcot's avatar
Florent Fourcot committed
12
pyflakes:2.7:
13
  image: "python:2.7"
Florent Fourcot's avatar
Florent Fourcot committed
14
  stage: "test"
15
16
  script:
    - "./tools/pyflakes.sh"
Florent Fourcot's avatar
Florent Fourcot committed
17
18
19

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

unittests:2.7:
  image: "python:2.7"
Florent Fourcot's avatar
Florent Fourcot committed
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"
Florent Fourcot's avatar
Florent Fourcot committed
40
  stage: "deploy"
41
42
43
44
  script:
    - "cd ./docs && make html"

build:3:
45
  image: "python:3"
Florent Fourcot's avatar
Florent Fourcot committed
46
  stage: "build"
47
  script:
Florent Fourcot's avatar
Florent Fourcot committed
48
    - "./tools/local_install.sh -3 ~/bin"
49

Florent Fourcot's avatar
Florent Fourcot committed
50
pyflakes:3:
51
  image: "python:3"
Florent Fourcot's avatar
Florent Fourcot committed
52
  stage: "test"
53
  script:
54
      - "./tools/pyflakes.sh -3"
Florent Fourcot's avatar
Florent Fourcot committed
55
56
57

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

unittests:3:
  image: "python:3"
Florent Fourcot's avatar
Florent Fourcot committed
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"
Florent Fourcot's avatar
Florent Fourcot committed
78
  stage: "deploy"
79
80
  script:
    - "cd ./docs && make html"