blob: 5ac0c6e26ab0474f9ae288a765031351f9bf8c08 (
plain)
1
2
3
4
5
6
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
46
47
48
|
image: python
stages:
- tests
- after-tests
before_script:
- pip install tox
py3:
stage: tests
script: tox -e py3
flake8:
stage: tests
script: tox -e flake8
check-manifest:
stage: tests
script: tox -e check-manifest
black:
stage: tests
script: tox -e black
mypy:
stage: tests
script: tox -e mypy
trigger-other-pipelines:
stage: after-tests
script:
# regarding the " everywhere when there is a '%': yaml is extremly weird when % are involved
- curl -X POST -F "variables[TRIGGERED_FROM_OTHER_PROJECT]=true" -F "token=$CUBICWEB_PIPELINE_TRIGGER_TOKEN" -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/385/trigger/pipeline -w "\nhttp code:"\ "%{http_code}\n" -f
- curl -X POST -F "variables[TRIGGERED_FROM_OTHER_PROJECT]=true" -F "token=$RQL_PIPELINE_TRIGGER_TOKEN" -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/300/trigger/pipeline -w "\nhttp code:"\ "%{http_code}\n" -f
- curl -X POST -F "variables[TRIGGERED_FROM_OTHER_PROJECT]=true" -F "token=$YAMS_PIPELINE_TRIGGER_TOKEN" -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/352/trigger/pipeline -w "\nhttp code:"\ "%{http_code}\n" -f
- curl -X POST -F "variables[TRIGGERED_FROM_OTHER_PROJECT]=true" -F "token=$LOGILAB_CONSTRAINT_PIPELINE_TRIGGER_TOKEN" -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/409/trigger/pipeline -w "\nhttp code:"\ "%{http_code}\n" -f
- curl -X POST -F "variables[TRIGGERED_FROM_OTHER_PROJECT]=true" -F "token=$LOGILAB_MTCONVERTER_PIPELINE_TRIGGER_TOKEN" -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/410/trigger/pipeline -w "\nhttp code:"\ "%{http_code}\n" -f
- curl -X POST -F "variables[TRIGGERED_FROM_OTHER_PROJECT]=true" -F "token=$LOGILAB_DATABASE_PIPELINE_TRIGGER_TOKEN" -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/248/trigger/pipeline -w "\nhttp code:"\ "%{http_code}\n" -f
trigger-readthedocs:
only:
refs:
- branch/default
stage: after-tests
script:
# 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
|