mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 21:17:54 +00:00
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:
parent
d8df630729
commit
51338bd874
1
.gitignore
vendored
1
.gitignore
vendored
@ -37,6 +37,7 @@ zope.interface-*.egg
|
||||
/tahoe-deps/
|
||||
/tahoe-deps.tar.gz
|
||||
/.coverage
|
||||
/.coverage.*
|
||||
/.coverage.el
|
||||
/coverage-html/
|
||||
/miscaptures.txt
|
||||
|
9
Makefile
9
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user