Commit 434a0899 authored by Yuanle Song's avatar Yuanle Song
Browse files

v0.10.0 make "make check" only run unit test.

"make test" does full bootstrap-dev, check-coding-style, unit test.
"make check" just runs the unit test, this makes running test much
easier.

In Jenkins or in pre-commit hook, use "make test".
In IDE, use "make check" to get test result faster.
parent d2310813
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
(defproject python/lein-template "0.9.6"
(defproject python/lein-template "0.10.0"
  :description "lein template for a python project"
  :repositories [["snapshots"
                  {:url "http://devserv.game.yy.com/nexus/content/repositories/snapshots"
+3 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ wheel: bootstrap-dev
	$(PIP) install wheel
	$(PIP) wheel -w wheelhouse -f https://emacsos.com/python/packages/ $(REQUIREMENTS)

check: test
check: just-test
check-coding-style: bootstrap-dev
	$(PEP8) $(PYTHON_MODULES)
	$(PYLINT) -E $(PYTHON_MODULES)
@@ -55,6 +55,8 @@ pylint-full: check-coding-style
	$(PYLINT) $(PYTHON_MODULES)
test: check-coding-style
	$(PYTEST) $(PYTHON_MODULES)
just-test:
	$(PYTEST) $(PYTHON_MODULES)

clean:
	find . -name "__pycache__" -type d -exec rm -rf {} \; || true