File tree Expand file tree Collapse file tree 1 file changed +35
-20
lines changed
Expand file tree Collapse file tree 1 file changed +35
-20
lines changed Original file line number Diff line number Diff line change 22// This file was automatically generated using 'python -m vsc.install.ci'
33// DO NOT EDIT MANUALLY
44
5- node {
5+ pipeline {
6+ agent any
7+ stages {
68 stage(' checkout git' ) {
7- checkout scm
8- // remove untracked files (*.pyc for example)
9- sh ' git clean -fxd'
9+ steps {
10+ checkout scm
11+ // remove untracked files (*.pyc for example)
12+ sh ' git clean -fxd'
13+ }
1014 }
11- stage (' ruff format' ) {
12- sh ' curl -L --silent https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-x86_64-unknown-linux-gnu.tar.gz --output - | tar -xzv'
13- sh ' cp ruff-x86_64-unknown-linux-gnu/ruff .'
14- sh ' ./ruff --version'
15- sh ' ./ruff format --check .'
15+ stage(' install ruff' ) {
16+ steps {
17+ sh ' curl -L --silent https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-x86_64-unknown-linux-gnu.tar.gz --output - | tar -xzv'
18+ sh ' cp ruff-x86_64-unknown-linux-gnu/ruff .'
19+ sh ' ./ruff --version'
20+ }
1621 }
17- stage (' ruff check' ) {
18- sh ' curl -L --silent https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-x86_64-unknown-linux-gnu.tar.gz --output - | tar -xzv'
19- sh ' cp ruff-x86_64-unknown-linux-gnu/ruff .'
20- sh ' ./ruff --version'
21- sh ' ./ruff check .'
22+ stage(' test pipeline' ) {
23+ parallel {
24+ stage (' ruff format' ) {
25+ steps {
26+ sh ' ./ruff format --check .'
27+ }
28+ }
29+ stage (' ruff check' ) {
30+ steps {
31+ sh ' ./ruff check .'
32+ }
33+ }
34+ stage(' test' ) {
35+ steps {
36+ sh ' pip3 install --ignore-installed --prefix $PWD/.vsc-tox tox'
37+ sh ' export PATH=$PWD/.vsc-tox/bin:$PATH && export PYTHONPATH=$PWD/.vsc-tox/lib/python$(python3 -c "import sys; print(\\ "%s.%s\\ " % sys.version_info[:2])")/site-packages:$PYTHONPATH && tox -v -c tox.ini'
38+ sh ' rm -r $PWD/.vsc-tox'
39+ }
40+ }
41+ }
2242 }
23- stage(' test' ) {
24- sh ' pip3 install --ignore-installed --prefix $PWD/.vsc-tox tox'
25- sh ' export PATH=$PWD/.vsc-tox/bin:$PATH && export PYTHONPATH=$PWD/.vsc-tox/lib/python$(python3 -c "import sys; print(\\ "%s.%s\\ " % sys.version_info[:2])")/site-packages:$PYTHONPATH && tox -v -c tox.ini'
26- sh ' rm -r $PWD/.vsc-tox'
27- }
28- }
43+ }}
You can’t perform that action at this time.
0 commit comments