diff --git a/Jenkinsfile b/Jenkinsfile index ef990d1..f371f82 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,15 +1,6 @@ pipeline { agent any 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') { steps { sh """ @@ -18,13 +9,31 @@ pipeline { virtualenv -p python3 venv . venv/bin/activate - pip install --upgrade pip + pip install --upgrade pip isort pip install -r requirements.txt """ } } - stage('bw test') { + stage('tests') { 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') { steps { sh """ @@ -36,7 +45,7 @@ pipeline { """ } } - stage('other tests') { + stage('bw test -i') { steps { sh """ . venv/bin/activate