summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: bb64a6123cb93101d5025a2b9158deb2c4052b51 (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
language: python
cache: pip
dist: xenial
python: 3.6
addons:
  apt:
    packages:
    - bzr

stages:
- primary
- secondary

jobs:
  include:
    # Basic Checks
    - stage: primary
      env: TOXENV=docs
    - env: TOXENV=lint-py2
      python: 2.7
    - env: TOXENV=lint-py3
    - env: TOXENV=mypy
    - env: TOXENV=packaging
    # Latest CPython
    - env: GROUP=1
      python: 2.7
    - env: GROUP=2
      python: 2.7
    - env: GROUP=1
      python: 3.6
    - env: GROUP=2
      python: 3.6

    # Complete checking for ensuring compatibility
    # PyPy
    - stage: secondary
      env: GROUP=1
      python: pypy3.5-6.0
    - env: GROUP=2
      python: pypy3.5-6.0
    - env: GROUP=1
      python: pypy2.7-6.0
    - env: GROUP=2
      python: pypy2.7-6.0
    # Other Supported CPython
    - env: GROUP=1
      python: 3.7
    - env: GROUP=2
      python: 3.7
    - env: GROUP=1
      python: 3.5
    - env: GROUP=2
      python: 3.5
    - env: GROUP=1
      python: 3.4
    - env: GROUP=2
      python: 3.4

    - env: GROUP=1
      python: 3.8-dev
    - env: GROUP=2
      python: 3.8-dev

  fast_finish: true
  # It's okay to fail on the in-development CPython version.
  allow_failures:
    - python: 3.8-dev

before_install: tools/travis/setup.sh
install: travis_retry tools/travis/install.sh
script: tools/travis/run.sh

notifications:
  irc:
    channels:
      # This is set to a secure variable to prevent forks from notifying the
      # IRC channel whenever they fail a build. This can be removed when travis
      # implements https://github.com/travis-ci/travis-ci/issues/1094.
      # The actual value here is: irc.freenode.org#pypa-dev
      - secure: zAlwcmrDThlRsZz7CPDGpj4ABTzf7bc/zQXYtvIuqmSj0yJMAwsO5Vx/+qdTGYBvmW/oHw2s/uUgtkZzntSQiVQToKMag2fs0d3wV5bLJQUE2Si2jnH2JOQo3JZWSo9HOqL6WYmlKGI8lH9FVTdVLgpeJmIpLy1bN4zx4/TiJjc=
    skip_join: true
    use_notice: true