.gitlab-ci.yml 798 Bytes
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
py3-from-forge:
15
  stage: tests
16
17
  script: tox -e py3-from-forge

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

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

26
trigger-other-pipelines:
27
28
29
  only:
    refs:
      - branch/default
30
31
32
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
33
34
  stage: after-tests
  script:
35
36
  # 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