forked from celery/py-amqp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
101 lines (95 loc) · 2.48 KB
/
.travis.yml
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
language: python
sudo: required
dist: xenial
cache: pip
python:
- '2.7'
- '3.5'
- '3.6'
- '3.7'
- '3.8'
- 'pypy2.7-6.0'
- 'pypy3.5-6.0'
env:
global:
PYTHONUNBUFFERED=yes
matrix:
- MATRIX_TOXENV=unit
stages:
- test
- integration
- lint
_integration_job: &integration_job
script:
- docker build -t rabbitmq:tls .
- tox -v -- -v
services:
- docker
stage: integration
matrix:
fast_finish: true
include:
- python: 2.7
env: TOXENV=flake8
stage: lint
- python: 2.7
env: TOXENV=flakeplus
stage: lint
- python: 2.7
env: TOXENV=pydocstyle
stage: lint
- python: 2.7
env: TOXENV=apicheck
stage: lint
- python: 2.7
<<: *integration_job
env: MATRIX_TOXENV=integration-rabbitmq
- python: 3.5
<<: *integration_job
env: MATRIX_TOXENV=integration-rabbitmq
- python: 3.6
<<: *integration_job
env: MATRIX_TOXENV=integration-rabbitmq
- python: 3.7
<<: *integration_job
env: MATRIX_TOXENV=integration-rabbitmq
- python: 3.8
<<: *integration_job
env: MATRIX_TOXENV=integration-rabbitmq
- python: pypy2.7-6.0
<<: *integration_job
env: MATRIX_TOXENV=integration-rabbitmq
- python: pypy3.5-6.0
<<: *integration_job
env: MATRIX_TOXENV=integration-rabbitmq
- python: 2.7
<<: *integration_job
env: MATRIX_TOXENV=integration-rabbitmq CELERY_ENABLE_SPEEDUPS=1
- python: 3.5
<<: *integration_job
env: MATRIX_TOXENV=integration-rabbitmq CELERY_ENABLE_SPEEDUPS=1
- python: 3.6
<<: *integration_job
env: MATRIX_TOXENV=integration-rabbitmq CELERY_ENABLE_SPEEDUPS=1
- python: 3.7
<<: *integration_job
env: MATRIX_TOXENV=integration-rabbitmq CELERY_ENABLE_SPEEDUPS=1
- python: 3.8
<<: *integration_job
env: MATRIX_TOXENV=integration-rabbitmq CELERY_ENABLE_SPEEDUPS=1
before_install:
- if [[ -v MATRIX_TOXENV ]]; then export TOXENV=${TRAVIS_PYTHON_VERSION}-${MATRIX_TOXENV}; fi; env
install:
- pip --disable-pip-version-check install -U pip setuptools wheel | cat
- pip --disable-pip-version-check install -U --upgrade-strategy eager tox tox-docker | cat
- python setup.py develop
script: tox -v -- -v
after_success:
- .tox/$TRAVIS_PYTHON_VERSION/bin/coverage xml
- .tox/$TRAVIS_PYTHON_VERSION/bin/codecov -e TOXENV
notifications:
irc:
channels:
- "chat.freenode.net#celery"
on_success: change
on_failure: change