summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 09359b5aa613e5483c3af9ab0f8c38a434e16cf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
sudo: required
services:
  - docker
language: python

git:
  depth: false

stages:
  - lint
  - test

jobs:
  include:
    - stage: lint
      name: commitlint
      python: 3.8
      script:
        - pip3 install pre-commit
        - pre-commit run --hook-stage manual commitlint-travis
      cache:
        directories:
          - $HOME/.cache/pre-commit
    - stage: lint
      name: black_lint
      dist: bionic
      python: 3.8
      script:
        - pip3 install -U --pre black==20.8b1
        - black --check .
    - stage: test
      name: cli_func_v4
      dist: bionic
      python: 3.8
      script:
        - pip3 install tox
        - tox -e cli_func_v4
    - stage: test
      name: py_func_v4
      dist: bionic
      python: 3.8
      script:
        - pip3 install tox
        - tox -e py_func_v4
    - stage: test
      name: cli_func_nightly
      dist: bionic
      python: 3.8
      env: GITLAB_TAG=nightly
      script:
        - pip3 install tox
        - tox -e cli_func_v4
    - stage: test
      name: py_func_nightly
      dist: bionic
      python: 3.8
      env: GITLAB_TAG=nightly
      script:
        - pip3 install tox
        - tox -e py_func_v4
    - stage: test
      name: docs
      dist: bionic
      python: 3.8
      script:
        - pip3 install tox
        - tox -e docs
    - stage: test
      name: py36
      python: 3.6
      dist: bionic
      script:
        - pip3 install tox
        - tox -e py36
    - stage: test
      name: py37
      dist: bionic
      python: 3.7
      script:
        - pip3 install tox
        - tox -e py37
    - stage: test
      dist: bionic
      name: py38
      python: 3.8
      script:
        - pip3 install tox
        - tox -e py38
    - stage: test
      dist: bionic
      name: twine-check
      python: 3.8
      script:
        - pip3 install tox wheel
        - python3 setup.py sdist bdist_wheel
        - tox -e twine-check
    - stage: test
      dist: bionic
      name: coverage
      python: 3.8
      install:
        - pip3 install tox codecov
      script:
        - tox -e cover
      after_success:
        - codecov
  allow_failures:
    - env: GITLAB_TAG=nightly