-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJenkinsfile
More file actions
43 lines (42 loc) · 1.39 KB
/
Jenkinsfile
File metadata and controls
43 lines (42 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Jenkinsfile: scripted Jenkins pipefile
// This file was automatically generated using 'python -m vsc.install.ci'
// DO NOT EDIT MANUALLY
pipeline {
agent any
stages {
stage('checkout git') {
steps {
checkout scm
// remove untracked files (*.pyc for example)
sh 'git clean -fxd'
}
}
stage('install ruff') {
steps {
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'
sh 'cp ruff-x86_64-unknown-linux-gnu/ruff .'
sh './ruff --version'
}
}
stage('test pipeline') {
parallel {
stage ('ruff format') {
steps {
sh './ruff format --check .'
}
}
stage ('ruff check') {
steps {
sh './ruff check .'
}
}
stage('test') {
steps {
sh 'pip3 install --ignore-installed --prefix $PWD/.vsc-tox tox'
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'
sh 'rm -r $PWD/.vsc-tox'
}
}
}
}
}}