Jenkinsfile: also check using isort

This commit is contained in:
Franzi 2023-02-05 17:34:39 +01:00
parent 4122a7ccf8
commit b49dc56c33
Signed by: kunsi
GPG key ID: 12E3D2136B818350

33
Jenkinsfile vendored
View file

@ -1,15 +1,6 @@
pipeline { pipeline {
agent any agent any
stages { stages {
stage('editorconfig-checker') {
steps {
sh """
wget -Oec-linux-amd64.tar.gz https://github.com/editorconfig-checker/editorconfig-checker/releases/latest/download/ec-linux-amd64.tar.gz
tar -xzf ec-linux-amd64.tar.gz && rm ec-linux-amd64.tar.gz
bin/ec-linux-amd64 -no-color -exclude '^bin/'
"""
}
}
stage('install_requirements') { stage('install_requirements') {
steps { steps {
sh """ sh """
@ -18,13 +9,31 @@ pipeline {
virtualenv -p python3 venv virtualenv -p python3 venv
. venv/bin/activate . venv/bin/activate
pip install --upgrade pip pip install --upgrade pip isort
pip install -r requirements.txt pip install -r requirements.txt
""" """
} }
} }
stage('bw test') { stage('tests') {
parallel { parallel {
stage('syntax checking using editorconfig-checker') {
steps {
sh """
wget -Oec-linux-amd64.tar.gz https://github.com/editorconfig-checker/editorconfig-checker/releases/latest/download/ec-linux-amd64.tar.gz
tar -xzf ec-linux-amd64.tar.gz && rm ec-linux-amd64.tar.gz
bin/ec-linux-amd64 -no-color -exclude '^bin/'
"""
}
}
stage('syntax checking using isort') {
steps {
sh """
. venv/bin/activate
isort --check .
"""
}
}
stage('config and metadata determinism') { stage('config and metadata determinism') {
steps { steps {
sh """ sh """
@ -36,7 +45,7 @@ pipeline {
""" """
} }
} }
stage('other tests') { stage('bw test -i') {
steps { steps {
sh """ sh """
. venv/bin/activate . venv/bin/activate