Compare commits
2 Commits
0808a9afee
...
76e04b9f8a
Author | SHA1 | Date |
---|---|---|
Corentin Sechet | 76e04b9f8a | |
Corentin Sechet | 86941a2012 |
|
@ -3,4 +3,3 @@
|
|||
/dist
|
||||
/gadjo.egg-info
|
||||
/gadjo/static/css/icons
|
||||
node_modules
|
||||
|
|
|
@ -7,8 +7,6 @@ pipeline {
|
|||
stage('Unit Tests') {
|
||||
steps {
|
||||
sh 'tox -rv'
|
||||
sh 'npm clean-install'
|
||||
sh 'npm test'
|
||||
}
|
||||
post {
|
||||
always {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^29.4.3",
|
||||
"jquery": "^3.6.3",
|
||||
"jsdom": "^21.1.0"
|
||||
}
|
||||
}
|
|
@ -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 -x 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