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

stages:
  - lint
  - tests
6
  - after-tests
7
8

lint_py:
9
10
11
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
12
13
14
15
16
17
18
  stage: lint
  before_script:
    - pip install tox
  script:
    - tox -e flake8

lint_manifest:
19
20
21
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
22
23
24
25
26
27
28
  stage: lint
  before_script:
    - pip install tox
  script:
    - tox -e check-manifest

lint_doc8:
29
30
31
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
32
33
34
35
36
37
38
  stage: lint
  before_script:
    - pip install tox
  script:
    - tox -e doc8

lint_doc:
39
40
41
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
42
43
44
45
46
47
48
49
  stage: lint
  before_script:
    - pip install tox
  script:
    - tox -e doc
  allow_failure: true  # XXX fix me

py3_server:
50
51
52
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
53
54
55
56
57
58
  stage: tests
  image: r.intra.logilab.fr/jenkins/jnlp:buster
  script:
    - tox -e py3-server

py3_web:
59
60
61
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
62
63
  stage: tests
  image: r.intra.logilab.fr/jenkins/jnlp:buster
64
65
  before_script:
    - sudo apt update && sudo apt install -y firefox-esr
66
67
68
69
  script:
    - tox -e py3-web

py3_misc:
70
71
72
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
73
74
  stage: tests
  image: r.intra.logilab.fr/jenkins/jnlp:buster
75
76
  before_script:
    - sudo apt update && sudo apt install -y firefox-esr
77
78
  script:
    - tox -e py3-misc
Laurent Peuch's avatar
Laurent Peuch committed
79
80
81
82

py3-from-forge:
  stage: tests
  image: r.intra.logilab.fr/jenkins/jnlp:buster
83
  allow_failure: true
Laurent Peuch's avatar
Laurent Peuch committed
84
85
86
87
  before_script:
    - pip install tox
  script:
    - tox -e py3-from-forge
88
89

trigger-readthedocs:
90
91
92
  only:
    refs:
      - branch/default
93
94
95
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
96
97
  stage: after-tests
  script:
98
99
  # 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