summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: f0272ce5aa7c49516fe698f3baa7ff4a40775041 (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
dist: xenial
group: travis_latest
sudo: false
cache:
  directories:
    - $HOME/.cache/pip

language: python


matrix:
  fast_finish: true

  include:
    # lint
    - python: "3.7"
      stage: lint
      env: TOXENV=lint
    - python: "3.7"
      env: TOXENV=manifest

    # test
    - python: "2.7"
      stage: test
      env: TOXENV=py27
    - python: "3.7"
      env: TOXENV=py37
    - python: "2.7"
      env: TOXENV=py27-pyopenssl014-idna
    - python: "2.7"
      env: TOXENV=py27-pyopensslLatest-idna
    - python: "2.7"
      env: TOXENV=py27-pyopensslLatest-noidna
    - python: "3.4"
      env: TOXENV=py34-pyopenssl014-idna
    - python: "3.4"
      env: TOXENV=py34-pyopensslLatest-idna
    - python: "3.5"
      env: TOXENV=py35-pyopenssl014-idna
    - python: "3.5"
      env: TOXENV=py35-pyopensslLatest-idna
    - python: "3.6"
      env: TOXENV=py36-pyopenssl014-idna
    - python: "3.6"
      env: TOXENV=py36-pyopensslLatest-idna
    - python: "3.6"
      env: TOXENV=py36-pyopensslLatest-noidna
    - python: "3.7"
      env: TOXENV=py37-pyopenssl014-idna
    - python: "3.7"
      env: TOXENV=py37-pyopensslLatest-idna
    - python: "3.7"
      env: TOXENV=py37-pyopensslLatest-noidna
    - python: "pypy"
      dist: trusty
      env: TOXENV=pypy
    - python: "pypy3"
      dist: trusty
      env: TOXENV=pypy3
    - python: "pypy"
      dist: trusty
      env: TOXENV=pypy-pyopensslLatest-idna
    - python: "pypy3"
      dist: trusty
      env: TOXENV=pypy3-pyopensslLatest-idna

    # Prevent breakage by a new releases
    - python: "3.6-dev"
      env: TOXENV=py36-pyopensslLatest-idna
    - python: "3.7-dev"
      env: TOXENV=py37-pyopensslLatest-idna

    # Docs
    - python: "3.7"
      stage: docs
      env: TOXENV=docs
    - python: "3.7"
      env: TOXENV=pypi-description

  allow_failures:
    - python: "3.6-dev"
    - python: "3.7-dev"


install:
  - pip install -U tox


script:
  - tox


before_install:
  - pip install codecov


after_success:
  - tox -e coverage-report
  - codecov


notifications:
  email: false