.gitlab-ci.yml 2.25 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
31
32

trigger-other-pipelines:
  stage: after-tests
  script:
33
34
35
36
37
38
39
  # 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
40
41

trigger-readthedocs:
42
43
44
  only:
    refs:
      - branch/default
45
46
  stage: after-tests
  script:
47
48
  # 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