forked from HariSekhon/DevOps-Python-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
118 lines (94 loc) · 2.4 KB
/
.travis.yml
File metadata and controls
118 lines (94 loc) · 2.4 KB
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
109
110
111
112
113
114
115
116
117
118
# vim:ts=2:sts=2:sw=2:et
#
# Author: Hari Sekhon
# Date: 2014-11-29 01:02:47 +0000 (Sat, 29 Nov 2014)
#
# https://github.com/harisekhon/devops-python-tools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback
# to help improve or steer this or other code I publish
#
# https://www.linkedin.com/in/harisekhon
#
version: ~> 1.0
# Mac Python 2.7 not available - see https://travis-ci.org/HariSekhon/pylib/jobs/584226228
#os:
# - linux
# - osx
python:
- "2.7"
#- "3.4" supported by pip as of March 2019
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "pypy" # currently Python 2.7.13, PyPy 7.1.1
- "pypy3" # currently Python 3.6.1, PyPy 7.1.1-beta0
matrix:
fast_finish: true
include:
# numpy has gone 2.7+ only now, so had to drop Python 2.6 support
- os: linux
language: python
python: "2.7"
- os: osx
language: generic # workaround since Mac doesn't have Python support yet, so install to system Python
- os: linux
language: python
python: "3.5"
- os: linux
language: python
python: "3.6"
- os: linux
language: python
python: "3.7"
- os: linux
language: python
python: "3.8"
# python-krbV fails to compile on PyPy
#
# psutil doesn't build:
#
# RuntimeError: broken / incompatible Python implementation, see: https://github.com/giampaolo/psutil/issues/1659
#
#- os: linux
# language: python
# python: "pypy"
- os: linux
language: python
python: "pypy3"
# allow_failures:
# - python: "3.4"
# - python: "3.5"
# - python: "3.6"
# - python: "3.7"
# - python: "3.8"
# - python: "pypy"
# - python: "pypy3"
#dist: trusty
sudo: required
env:
# - DEBUG=1
- DOCKER_COMPOSE_VERSION=1.16.1 PYTHONUNBUFFERED=1
notifications:
email: false
branches:
only:
- master
cache: pip
services:
- docker
# avoid package checksum mismatches when installing packages
before_install:
- sudo rm -f "${TRAVIS_ROOT}/etc/apt/apt.conf.d/99-travis-apt-proxy"
- sudo rm -rf "${TRAVIS_ROOT}/var/lib/apt/lists/"*
install:
- travis_retry make
#- pip install --upgrade ndg-httpsclient
- travis_retry pip uninstall -y certifi && travis_retry pip install certifi==2015.04.28
script:
- travis_retry make test
after_success:
- coveralls