.gitlab-ci.yml 1.32 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
20
  script: tox -e py3

21
py3-from-forge:
22
23
24
  before_script:
    - apt-get update
    - apt-get install texlive-latex-recommended -y
25
    - apt-get install xpdf -y
26
    - pip install tox
27
  stage: tests
28
  script: python3 -c 'print("skipped")'  # tox -e py3-from-forge
29

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

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

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

51
mypy:
52
53
54
  except:
    variables:
      - $TRIGGERED_FROM_OTHER_PROJECT
55
  stage: tests
Nsukami Patrick's avatar
Nsukami Patrick committed
56
  script: tox -e mypy
57

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