diff options
| author | Mike Frysinger <vapier@google.com> | 2019-12-01 22:47:21 -0500 |
|---|---|---|
| committer | Mike Frysinger <vapier@google.com> | 2019-12-02 04:24:23 +0000 |
| commit | 4997d1c83870c00ec7934ce55570e1d3fbade66f (patch) | |
| tree | ea27fd62abe6c815a9d75d6874c6d85b5d2f6e13 /tox.ini | |
| parent | 5b3a57c3ffdabe421817dbb63ee243b2c9cd0797 (diff) | |
| download | git-repo-4997d1c83870c00ec7934ce55570e1d3fbade66f.tar.gz | |
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 <dpursehouse@collab.net>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'tox.ini')
| -rw-r--r-- | tox.ini | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..02c5647d --- /dev/null +++ b/tox.ini | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # Copyright 2019 The Android Open Source Project | ||
| 2 | # | ||
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 4 | # you may not use this file except in compliance with the License. | ||
| 5 | # You may obtain a copy of the License at | ||
| 6 | # | ||
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | # | ||
| 9 | # Unless required by applicable law or agreed to in writing, software | ||
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | # See the License for the specific language governing permissions and | ||
| 13 | # limitations under the License. | ||
| 14 | |||
| 15 | # https://tox.readthedocs.io/ | ||
| 16 | |||
| 17 | [tox] | ||
| 18 | envlist = py27, py36, py37, py38 | ||
| 19 | |||
| 20 | [testenv] | ||
| 21 | deps = pytest | ||
| 22 | commands = {toxinidir}/run_tests | ||
