rubocop #29

Merged
bucky merged 18 commits from rubocop into master 2023-10-22 15:11:24 -07:00
Showing only changes of commit 282a07c5fb - Show all commits
Vendored
+6 -3
View File
@@ -20,6 +20,9 @@ pipeline {
sh 'sequel -m db/migrations sqlite://db/${DB_NAME}'
}
}
stage('Code Linting') {
sh 'bundle exec rubocop --format html --out rubocop.html'
}
stage('Run tests') {
steps {
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
@@ -37,9 +40,9 @@ pipeline {
alwaysLinkToLastBuild: false,
keepAll: true,
reportDir: '.',
reportFiles: 'cucumber.html, spec.html, coverage/index.html',
reportFiles: 'rubocop.html, cucumber.html, spec.html, coverage/index.html',
reportName: 'Test Results',
reportTitles: 'Cucumber Results, RSpec Results, Test Coverage'])
reportTitles: 'Rubocop Results, Cucumber Results, RSpec Results, Test Coverage'])
}
}
stage('Build production deliverable') {
@@ -53,7 +56,7 @@ pipeline {
cp .env.rb /tmp/url-shortener/
cp .ruby-version /tmp/url-shortener/
cd /tmp/url-shortener
rm -rf features spec coverage db/*.db .git* Jenkinsfile *.html
rm -rf features spec coverage db/*.db .git* Jenkinsfile *.html .rubocop.yml
cd /tmp
tar -czvf $ZIP_FILE url-shortener/
mv /tmp/$ZIP_FILE $CUR_DIR/