forked from UCSBarchlab/PyRTL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
35 lines (28 loc) · 1.05 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[tox]
# don't forget to change the [gh-actions] 'python' and [testenv] envdir variables and the
# .github/workflows/python-package.yml 'python-version' value when changing the following line
envlist = py{37,27}-{test}, pycodestyle
[gh-actions]
python =
2.7: py27
3.7: py37, pycodestyle
[testenv]
basepython = python3
deps = test: -rrequirements.txt
pycodestyle: pycodestyle
travis: codecov
envdir =
py27: {toxworkdir}/27
py37: {toxworkdir}/37
pycodestyle: {toxworkdir}/pycodestyle
setenv =
PYTHONPATH = {toxinidir}
commands =
test: nosetests ./tests --with-coverage
test: nosetests ./tests/rtllib --with-coverage
test: pylint -E pyrtl/
pycodestyle: pycodestyle --max-line-length=100 --ignore=W503 pyrtl/
pycodestyle: pycodestyle --max-line-length=100 --ignore=W503 examples/
pycodestyle: pycodestyle --max-line-length=100 --ignore=W503 tests/
# circleci
passenv = CI TRAVIS_BUILD_ID TRAVIS TRAVIS_BRANCH TRAVIS_JOB_NUMBER TRAVIS_PULL_REQUEST TRAVIS_JOB_ID TRAVIS_REPO_SLUG TRAVIS_COMMIT PROCESSOR_ARCHITECTURE