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

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

7
8
9
before_script:
  - pip install tox
py3:
10
11
12
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
13
14
15
  before_script:
    - apt-get update
    - apt-get install texlive-latex-recommended -y
Nsukami Patrick's avatar
Nsukami Patrick committed
16
    - apt-get install xpdf -y
17
    - pip install tox
18
  stage: tests
19
  script: tox -e py3
20
21
22
  artifacts:
    paths:
      - py3-deprecated-warnings.json
23

24
py3-from-forge:
25
26
27
  before_script:
    - apt-get update
    - apt-get install texlive-latex-recommended -y
28
    - apt-get install xpdf -y
29
    - pip install tox
30
  stage: tests
Laurent Peuch's avatar
Laurent Peuch committed
31
  script: tox -e py3-from-forge
32
33
34
  artifacts:
    paths:
      - py3-deprecated-warnings.json
35

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

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

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

57
mypy:
58
59
60
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
61
  stage: tests
Nsukami Patrick's avatar
Nsukami Patrick committed
62
  script: tox -e mypy
63

64
65
trigger-cubicweb-pipeline:
  stage: after-tests
66
67
  except:
    variables:
68
69
70
71
72
73
74
      - $TRIGGERED_FROM_OTHER_PROJECT && $TRIGGERED_FROM_OTHER_PROJECT != "logilab-constraint"
  variables:
    TRIGGERED_FROM_OTHER_PROJECT: "logilab-constraint"
  trigger:
    project: cubicweb/cubicweb
    branch: branch/default
    strategy: depend