[LNT] r349114 - Tox based testing

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 13 16:28:24 PST 2018


Author: cmatthews
Date: Thu Dec 13 16:28:23 2018
New Revision: 349114

URL: http://llvm.org/viewvc/llvm-project?rev=349114&view=rev
Log:
Tox based testing

Tox is really handy for building a venv and running all the tests and
qualification tasks in a repeatable way.

Added:
    lnt/trunk/tox.ini

Added: lnt/trunk/tox.ini
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tox.ini?rev=349114&view=auto
==============================================================================
--- lnt/trunk/tox.ini (added)
+++ lnt/trunk/tox.ini Thu Dec 13 16:28:23 2018
@@ -0,0 +1,30 @@
+[tox]
+envlist = py27
+          mypy
+          flake8
+
+[testenv]
+whitelist_externals = rm
+
+deps = -rrequirements.txt
+
+commands =
+    rm -rf ./test_run_tmp
+    lit -sv ./tests/
+
+[testenv:mypy]
+basepython = python3
+skip_install = true
+deps =
+    mypy
+commands =
+    # No where close to passing yet, but nice to have.
+    - mypy --junit-xml=junit-{envname}.xml --py2 --ignore-missing-imports lnt
+
+[testenv:flake8]
+skip_install = true
+deps =
+    flake8
+commands =
+    # Still lots of problems.
+    - flake8 --exclude=./lnt/external/  ./lnt/ ./tests/ ./setup.py ./deployment/




More information about the llvm-commits mailing list