ci: run javascript unit tests on Jenkins (#75133)
gitea/gadjo/pipeline/head This commit looks good Details

This commit is contained in:
Corentin Sechet 2023-03-04 18:40:54 +01:00
parent 6bd04d8e4a
commit 38517477cc
2 changed files with 12 additions and 2 deletions

7
setup-node.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
pip install nodeenv
nodeenv --python-virtualenv --prebuilt
npm clean-install
pip install $*

View File

@ -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