ci: run javascript unit tests on Jenkins (#75133)
gitea/gadjo/pipeline/head There was a failure building this commit
Details
gitea/gadjo/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
86941a2012
commit
838cb33cf8
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
pip install nodeenv
|
||||
nodeenv --python-virtualenv --prebuilt
|
||||
npm install -g --no-package-lock --no-save jest jsdom jquery
|
||||
pip install $*
|
7
tox.ini
7
tox.ini
|
@ -1,12 +1,15 @@
|
|||
[tox]
|
||||
envlist = codestyle-pylint
|
||||
envlist = codestyle-pylint, jest
|
||||
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/gadjo/{env:BRANCH_NAME:}
|
||||
|
||||
[testenv]
|
||||
whitelist_externals = bash
|
||||
deps =
|
||||
codestyle: pre-commit
|
||||
pylint: pylint
|
||||
pylint: pylint-django
|
||||
install_command =
|
||||
jest: bash setup-node.sh {opts} {packages}
|
||||
commands =
|
||||
codestyle: pre-commit run --all-files --show-diff-on-failure
|
||||
pylint: ./pylint.sh gadjo/
|
||||
jest: npx jest
|
||||
|
|
Loading…
Reference in New Issue