Skip to content

Commit 4b2f5c0

Browse files
authored
Merge pull request influxdata#604 from xginn8/multiple_versions
Update travis to test multiple versions of InfluxDB
2 parents 62613a5 + 4dc7e02 commit 4b2f5c0

File tree

2 files changed

+23
-20
lines changed

2 files changed

+23
-20
lines changed

.travis.yml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
language: python
22

3+
python:
4+
- "2.7"
5+
- "3.5"
6+
- "3.6"
7+
- "pypy-5.3.1"
8+
9+
env:
10+
- INFLUXDB_VER=1.2.4
11+
# - INFLUXDB_VER=1.3.9
12+
# - INFLUXDB_VER=1.4.2
13+
# - INFLUXDB_VER=1.5.4
14+
315
addons:
416
apt:
517
packages:
618
- wget
719

820
matrix:
9-
allow_failures:
10-
- python: 3.4
11-
env: TOX_ENV=docs
1221
include:
13-
- python: 2.7
14-
env: TOX_ENV=py27
1522
- python: 2.7
1623
env: TOX_ENV=pep257
17-
- python: pypy-5.3.1
18-
env: TOX_ENV=pypy
19-
- python: 3.4
20-
env: TOX_ENV=py34
21-
- python: 3.5
22-
env: TOX_ENV=py35
23-
- python: 3.6
24-
env: TOX_ENV=py36
2524
- python: 3.6
2625
env: TOX_ENV=docs
2726
- python: 3.6
@@ -30,17 +29,20 @@ matrix:
3029
env: TOX_ENV=coverage
3130

3231
install:
33-
- pip install tox
32+
- pip install tox-travis
3433
- pip install setuptools==20.6.6
3534
- pip install coveralls
36-
- mkdir influxdb_install
37-
- wget https://dl.influxdata.com/influxdb/releases/influxdb_1.2.4_amd64.deb
38-
- dpkg -x influxdb*.deb influxdb_install
35+
- mkdir -p "influxdb_install/${INFLUXDB_VER}"
36+
- if [ -n "${INFLUXDB_VER}" ] ; then wget "https://dl.influxdata.com/influxdb/releases/influxdb_${INFLUXDB_VER}_amd64.deb" ; fi
37+
- if [ -n "${INFLUXDB_VER}" ] ; then dpkg -x influxdb*.deb "influxdb_install/${INFLUXDB_VER}" ; fi
38+
3939
script:
40-
- export INFLUXDB_PYTHON_INFLUXD_PATH=$(pwd)/influxdb_install/usr/bin/influxd
41-
- tox -e $TOX_ENV
40+
- export "INFLUXDB_PYTHON_INFLUXD_PATH=$(pwd)/influxdb_install/${INFLUXDB_VER}/usr/bin/influxd"
41+
- if [ -n "${TOX_ENV}" ]; then tox -e "${TOX_ENV}"; else tox; fi
42+
4243
after_success:
43-
- if [ "$TOX_ENV" == "coverage" ] ; then coveralls; fi
44+
- if [ "${TOX_ENV}" == "coverage" ] ; then coveralls; fi
45+
4446
notifications:
4547
email: false
4648

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77
## [Unreleased]
88
### Added
99
- Finally add a CHANGELOG.md to communicate breaking changes (#598)
10+
- Test multiple versions of InfluxDB in travis
1011
### Changed
1112
- Fix performance degradation when removing NaN values via line protocol (#592)
1213
### Removed

0 commit comments

Comments
 (0)