Add jslint check to PR CI tests

For now, from all possible lint checks, pylint applies only.
jslint can prevent JavaScript errors at WebUI.

Fixes: https://pagure.io/freeipa/issue/7717
Fixes: https://pagure.io/freeipa/issue/7718
Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Stanislav Levin 2018-09-26 21:50:32 +03:00 committed by Christian Heimes
parent 5476547416
commit 54a0e9e96d
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ steps:
- sed -ri "s/mode = production/mode = development/" /etc/ipa/default.conf - sed -ri "s/mode = production/mode = development/" /etc/ipa/default.conf
- systemctl restart httpd.service - systemctl restart httpd.service
lint: lint:
- make V=0 pylint - make V=0 lint
webui_unit: webui_unit:
- dnf install -y npm - dnf install -y npm
- cd ${container_working_dir}/install/ui/js/libs && make - cd ${container_working_dir}/install/ui/js/libs && make

View File

@ -185,7 +185,7 @@ endif
@ # just tests, aci, api and pylint on Python 3 @ # just tests, aci, api and pylint on Python 3
PYTHONPATH=$(abspath $(top_srcdir)) $(PYTHON) ipatests/ipa-run-tests \ PYTHONPATH=$(abspath $(top_srcdir)) $(PYTHON) ipatests/ipa-run-tests \
--ipaclient-unittests --ipaclient-unittests
$(MAKE) $(AM_MAKEFLAGS) acilint apilint polint pylint $(MAKE) $(AM_MAKEFLAGS) acilint apilint polint pylint jslint check
@echo "All tests passed." @echo "All tests passed."
.PHONY: fastcheck fasttest fastlint .PHONY: fastcheck fasttest fastlint