forked from influxdata/influxdb-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (73 loc) · 1.81 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
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "pypy"
- "pypy3"
env:
- INFLUXDB_VER=1.2.4 # 2017-05-08
- INFLUXDB_VER=1.3.9 # 2018-01-19
- INFLUXDB_VER=1.4.3 # 2018-01-30
- INFLUXDB_VER=1.5.4 # 2018-06-22
- INFLUXDB_VER=1.6.4 # 2018-10-24
- INFLUXDB_VER=1.7.4 # 2019-02-14
addons:
apt:
packages:
- wget
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
env: INFLUXDB_VER=1.2.4
- python: 3.7
dist: xenial
sudo: true
env: INFLUXDB_VER=1.3.9
- python: 3.7
dist: xenial
sudo: true
env: INFLUXDB_VER=1.4.3
- python: 3.7
dist: xenial
sudo: true
env: INFLUXDB_VER=1.5.4
- python: 3.7
dist: xenial
sudo: true
env: INFLUXDB_VER=1.6.4
- python: 3.7
dist: xenial
sudo: true
env: INFLUXDB_VER=1.7.4
- python: 3.6
env: TOX_ENV=pep257
- python: 3.6
env: TOX_ENV=docs
- python: 3.6
env: TOX_ENV=flake8
- python: 3.6
env: TOX_ENV=coverage
install:
- pip install tox-travis
- pip install setuptools
- pip install coveralls
- mkdir -p "influxdb_install/${INFLUXDB_VER}"
- if [ -n "${INFLUXDB_VER}" ] ; then wget "https://dl.influxdata.com/influxdb/releases/influxdb_${INFLUXDB_VER}_amd64.deb" ; fi
- if [ -n "${INFLUXDB_VER}" ] ; then dpkg -x influxdb*.deb "influxdb_install/${INFLUXDB_VER}" ; fi
script:
- export "INFLUXDB_PYTHON_INFLUXD_PATH=$(pwd)/influxdb_install/${INFLUXDB_VER}/usr/bin/influxd"
- if [ -n "${TOX_ENV}" ]; then tox -e "${TOX_ENV}"; else tox; fi
after_success:
- if [ "${TOX_ENV}" == "coverage" ] ; then coveralls; fi
notifications:
email: false
sudo: false
# Travis caching
cache: false
# directories:
# - $HOME/.cache/pip
#before_cache:
# - rm -f $HOME/.cache/pip/log/debug.log