.gitlab-ci.yml 2.58 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
13
  script: tox -e py3

14
15
16
17
flake8:
  stage: tests
  script: tox -e flake8

18
check-manifest:
19
  stage: tests
20
21
22
  script: tox -e check-manifest

black:
23
  stage: tests
24
25
26
  script: tox -e black

mypy:
27
  stage: tests
28
  script: tox -e mypy
29

30
trigger-cubicweb-pipeline:
31
  stage: after-tests
32
33
34
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
  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
101
102

trigger-readthedocs:
103
104
105
  only:
    refs:
      - branch/default
106
107
  stage: after-tests
  script:
108
109
  # 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