.gitlab-ci.yml 1.09 KB
Newer Older
1
image: python:latest
2

3
4
5
6
stages:
  - tests
  - after-tests

7
8
9
10
before_script:
  - pip install tox

py3:
11
12
13
14
  before_script:
    - apt-get update
    - apt-get install texlive-latex-recommended -y
    - pip install tox
15
  stage: tests
16
17
  script: tox -e py3

18
py3-from-forge:
19
20
21
22
  before_script:
    - apt-get update
    - apt-get install texlive-latex-recommended -y
    - pip install tox
23
  stage: tests
24
25
  script: tox -e py3-from-forge

26
check-manifest:
27
  stage: tests
28
  script: tox -e check-manifest
29

30
31
32
33
black:
  stage: tests
  script: tox -e black

34
35
36
37
flake8:
  stage: tests
  script: tox -e flake8

38
39
40
41
mypy:
  stage: tests
  script: tox -e mypy

42
trigger-other-pipelines:
43
44
45
  only:
    refs:
      - branch/default
46
47
48
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
49
50
  stage: after-tests
  script:
51
52
  # 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