.gitlab-ci.yml 2.64 KB
Newer Older
1
2
image: python

3
4
5
6
stages:
  - tests
  - after-tests

7
8
9
10
before_script:
  - pip install tox

py3:
11
  stage: tests
12
  script: tox -e py3
13
14
15
  artifacts:
    paths:
      - py3-deprecated-warnings.json
16

17
18
19
20
flake8:
  stage: tests
  script: tox -e flake8

21
check-manifest:
22
  stage: tests
23
24
25
  script: tox -e check-manifest

black:
26
  stage: tests
27
28
29
  script: tox -e black

mypy:
30
  stage: tests
31
  script: tox -e mypy
32

33
trigger-cubicweb-pipeline:
34
  stage: after-tests
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT && $TRIGGERED_FROM_OTHER_PROJECT != "logilab-common"
  variables:
    TRIGGERED_FROM_OTHER_PROJECT: "logilab-common"
  trigger:
    project: cubicweb/cubicweb
    branch: branch/default
    strategy: depend

trigger-yams-pipeline:
  stage: after-tests
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT && $TRIGGERED_FROM_OTHER_PROJECT != "logilab-common"
  variables:
    TRIGGERED_FROM_OTHER_PROJECT: "logilab-common"
  trigger:
    project: open-source/yams
    branch: branch/default
    strategy: depend

trigger-rql-pipeline:
  stage: after-tests
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT && $TRIGGERED_FROM_OTHER_PROJECT != "logilab-common"
  variables:
    TRIGGERED_FROM_OTHER_PROJECT: "logilab-common"
  trigger:
    project: open-source/CubicWeb/RQL
    branch: branch/default
    strategy: depend

trigger-logilab-database-pipeline:
  stage: after-tests
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT && $TRIGGERED_FROM_OTHER_PROJECT != "logilab-common"
  variables:
    TRIGGERED_FROM_OTHER_PROJECT: "logilab-common"
  trigger:
    project: open-source/logilab-database
    branch: branch/default
    strategy: depend

trigger-logilab-constraint-pipeline:
  stage: after-tests
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT && $TRIGGERED_FROM_OTHER_PROJECT != "logilab-common"
  variables:
    TRIGGERED_FROM_OTHER_PROJECT: "logilab-common"
  trigger:
    project: open-source/logilab-constraint
    branch: branch/default
    strategy: depend

trigger-logilab-mtconverter-pipeline:
  stage: after-tests
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT && $TRIGGERED_FROM_OTHER_PROJECT != "logilab-common"
  variables:
    TRIGGERED_FROM_OTHER_PROJECT: "logilab-common"
  trigger:
    project: open-source/logilab-mtconverter
    branch: branch/default
    strategy: depend
104
105

trigger-readthedocs:
106
107
108
  only:
    refs:
      - branch/default
109
110
  stage: after-tests
  script:
111
112
  # 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/logilab-common/89595/ -w "\nhttp code:"\ "%{http_code}\n" -f