Skip to content

Commit

Permalink
Test with python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jovial committed Jun 5, 2020
1 parent fc51347 commit 952d96e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
language: python
python: "2.7"
python:
- "2.7"
- "3.8"

# Run jobs in containers.
sudo: false
Expand All @@ -20,6 +22,8 @@ env:
- TOX_ENV=pep8
# Run python2.7 unit tests.
- TOX_ENV=py27
# Run python3.8 units tests.
- TOX_ENV=py38

install:
- pip install tox
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tox]
envlist = py35,py27,pep8
envlist = py38,py27,pep8

[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
basepython = python3
basepython = python3.8
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
Expand All @@ -29,12 +29,13 @@ commands =
flake8 stackhpc_inspector_plugins

[testenv:py27]
basepython = python2.7
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/train}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt

[testenv:py35]
[testenv:py38]
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/train}
-r{toxinidir}/requirements.txt
Expand Down

0 comments on commit 952d96e

Please sign in to comment.