From 4997d1c83870c00ec7934ce55570e1d3fbade66f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 1 Dec 2019 22:47:21 -0500 Subject: tox: add & document tox usage This makes it easy to run all the tests against multiple versions of Python. We want to make sure Python 2.7 & 3.6+ work. Change-Id: Ia7b16eb46a2aa7c240f03bb291987fa8cb215267 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/247174 Reviewed-by: David Pursehouse Tested-by: Mike Frysinger --- tox.ini | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tox.ini (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..02c5647d --- /dev/null +++ b/tox.ini @@ -0,0 +1,22 @@ +# Copyright 2019 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# https://tox.readthedocs.io/ + +[tox] +envlist = py27, py36, py37, py38 + +[testenv] +deps = pytest +commands = {toxinidir}/run_tests -- cgit v1.2.3-54-g00ecf