.gitlab-ci.yml 846 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
27
28
29
flake8:
  stage: tests
  script: tox -e flake8

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