install bundled gems in /vendor, and use bundle exec to run them

pull/29/head
Adam Townsend 2023-10-22 13:27:07 -07:00
parent f86da2ed6f
commit 3fa1de5e4e
1 changed files with 3 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -16,6 +16,7 @@ pipeline {
} }
stage('Build dependencies') { stage('Build dependencies') {
steps { steps {
sh 'bundle config set --local path "vendor"'
sh 'bundle install' sh 'bundle install'
sh 'sequel -m db/migrations sqlite://db/${DB_NAME}' sh 'sequel -m db/migrations sqlite://db/${DB_NAME}'
} }
@ -28,10 +29,10 @@ pipeline {
stage('Run tests') { stage('Run tests') {
steps { steps {
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh 'cucumber features --format html --out cucumber.html' sh 'bundle exec cucumber features --format html --out cucumber.html'
} }
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh 'rspec spec --format html --out spec.html' sh 'bundle exec rspec spec --format html --out spec.html'
} }
} }
} }