summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2020-04-02 16:24:17 +0000
committerGitHub <noreply@github.com>2020-04-02 16:24:17 +0000
commit65e8af62b18d5776ebed02ae9d22e137d7f421ca (patch)
tree93e8a3a784577d2d1f3069231feb85c54f11829e /Makefile
parent07932951f2c5d5ab7c89a78f389db2a9008d7631 (diff)
parent70d114fab53ec0d826ae30f8dc48ee663c6cc3c4 (diff)
Merge pull request #1910 from return42/rfc-travis
improve travis build
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 65f79ba2c..abd0eddb8 100644
--- a/Makefile
+++ b/Makefile
@@ -186,12 +186,17 @@ PHONY += test test.pylint test.pep8 test.unit test.coverage test.robot
test: buildenv test.pylint test.pep8 test.unit gecko.driver test.robot
+ifeq ($(PY),2)
+test.pylint:
+ @echo "LINT skip liniting py2"
+else
# TODO: balance linting with pylint
test.pylint: pyenvinstall
$(call cmd,pylint,\
searx/preferences.py \
searx/testing.py \
)
+endif
# ignored rules:
# E402 module level import not at top of file
@@ -220,4 +225,11 @@ test.clean:
@echo "CLEAN intermediate test stuff"
$(Q)rm -rf geckodriver.log .coverage coverage/
+
+# travis
+# ------
+
+travis.codecov:
+ $(Q)$(PY_ENV_BIN)/python -m pip install codecov
+
.PHONY: $(PHONY)