.gitlab-ci.yml 1.47 KB
Newer Older
1
2
3
4
5
image: python:latest

stages:
  - lint
  - tests
6
  - after-tests
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

lint_py:
  stage: lint
  before_script:
    - pip install tox
  script:
    - tox -e flake8

lint_manifest:
  stage: lint
  before_script:
    - pip install tox
  script:
    - tox -e check-manifest

lint_doc8:
  stage: lint
  before_script:
    - pip install tox
  script:
    - tox -e doc8

lint_doc:
  stage: lint
  before_script:
    - pip install tox
  script:
    - tox -e doc
  allow_failure: true  # XXX fix me

py3_server:
  stage: tests
  image: r.intra.logilab.fr/jenkins/jnlp:buster
  script:
    - tox -e py3-server

py3_web:
  stage: tests
  image: r.intra.logilab.fr/jenkins/jnlp:buster
46
47
  before_script:
    - sudo apt update && sudo apt install -y firefox-esr
48
49
50
51
52
53
  script:
    - tox -e py3-web

py3_misc:
  stage: tests
  image: r.intra.logilab.fr/jenkins/jnlp:buster
54
55
  before_script:
    - sudo apt update && sudo apt install -y firefox-esr
56
57
  script:
    - tox -e py3-misc
Laurent Peuch's avatar
Laurent Peuch committed
58
59
60
61
62
63
64
65

py3-from-forge:
  stage: tests
  image: r.intra.logilab.fr/jenkins/jnlp:buster
  before_script:
    - pip install tox
  script:
    - tox -e py3-from-forge
66
67

trigger-readthedocs:
68
69
70
  only:
    refs:
      - branch/default
71
72
73
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
74
75
  stage: after-tests
  script:
76
77
  # regarding the " everywhere when there is a '%': yaml is extremly weird when % are involved
  - curl -X POST -d "token=${READTHEDOCS_TOKEN}" https://readthedocs.org/api/v2/webhook/cubicweb/33537/ -w "\nhttp code:"\ "%{http_code}\n" -f