.gitlab-ci.yml 1.23 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
58
trigger-cubicweb-pipeline:
  stage: after-tests
59
60
  except:
    variables:
61
62
63
64
65
66
67
      - $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