.gitlab-ci.yml 1.4 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
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
14
15
16
17
  before_script:
    - apt-get update
    - apt-get install texlive-latex-recommended -y
    - pip install tox
18
  stage: tests
19
20
  script: tox -e py3

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

29
check-manifest:
30
31
32
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
33
  stage: tests
34
  script: tox -e check-manifest
35

36
black:
37
38
39
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
40
41
42
  stage: tests
  script: tox -e black

43
flake8:
44
45
46
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
47
48
49
  stage: tests
  script: tox -e flake8

50
mypy:
51
52
53
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
54
55
56
  stage: tests
  script: tox -e mypy

57
trigger-other-pipelines:
58
59
60
  only:
    refs:
      - branch/default
61
62
63
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
64
65
  stage: after-tests
  script:
66
67
  # 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