build(make): Add targets for running tests

Fully parallelize the build of the environments since they tend to be network I/O
bound.  Parallelize the run of tests to use all CPU cores.
This commit is contained in:
Ross Patterson 2020-09-17 14:09:08 -07:00
parent d8df630729
commit 51338bd874
2 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View File

@ -37,6 +37,7 @@ zope.interface-*.egg
/tahoe-deps/
/tahoe-deps.tar.gz
/.coverage
/.coverage.*
/.coverage.el
/coverage-html/
/miscaptures.txt

View File

@ -27,6 +27,11 @@ APPNAME=tahoe-lafs
default:
@echo "no default target"
.PHONY: test
## Run all tests and code reports
test: .tox
tox -p auto
# This is necessary only if you want to automatically produce a new
# _version.py file from the current git history (without doing a build).
.PHONY: make-version
@ -199,6 +204,7 @@ distclean: clean
rm -rf src/*.egg-info
rm -f src/allmydata/_version.py
rm -f src/allmydata/_appname.py
rm -rf ./.tox/
.PHONY: find-trailing-spaces
@ -237,3 +243,6 @@ upload-tarballs:
src/allmydata/_version.py:
$(MAKE) make-version
.tox: tox.ini setup.py
tox --notest -p all