Skip to content

Commit

Permalink
Merge pull request jpadilla#31 from jpadilla/test-on-latest-pythons
Browse files Browse the repository at this point in the history
Also test on Python 3.6 and 3.7
  • Loading branch information
jpadilla committed Oct 14, 2018
2 parents 1070aec + 604cb22 commit 16489eb
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 17 deletions.
40 changes: 27 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
language: python

python:
- "3.5"

sudo: false
# This is required to get Travis to run Python 3.7
# https://github.com/travis-ci/travis-ci/issues/9069#issuecomment-425720905
sudo: required
dist: xenial

env:
- TOX_ENV=py27-flake8
- TOX_ENV=py27
- TOX_ENV=py34
- TOX_ENV=py35
language: python

install:
- pip install tox
- pip install tox

matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: 3.4
env: TOXENV=py34
- python: 3.5
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36
- python: 3.7
env: TOXENV=py37
- python: 3.7
env: TOXENV=flake8

script:
- tox -e $TOX_ENV
- tox

cache:
directories:
- $HOME/.cache/pip
- .tox
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ django-dotenv
Original implementation was written by
`@jacobian <https://github.com/jacobian>`__.

Tested on Python 2.7, 3.3, 3.4, and 3.5.
Tested on Python 2.7, 3.4, 3.5, 3.6, and 3.7.

Installation
------------
Expand Down
10 changes: 7 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
[tox]
envlist =
py27-flake8,
py27, py32, py34, py35
flake8,
py27,
py34,
py35,
py36,
py37,

[testenv]
commands = python setup.py test

[testenv:py27-flake8]
[testenv:flake8]
deps = flake8==2.4.0
commands = flake8 dotenv.py --verbose

0 comments on commit 16489eb

Please sign in to comment.