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

This commit is contained in:
2023-10-22 13:27:07 -07:00
parent f86da2ed6f
commit 3fa1de5e4e
Vendored
+3 -2
View File
@@ -16,6 +16,7 @@ pipeline {
}
stage('Build dependencies') {
steps {
sh 'bundle config set --local path "vendor"'
sh 'bundle install'
sh 'sequel -m db/migrations sqlite://db/${DB_NAME}'
}
@@ -28,10 +29,10 @@ pipeline {
stage('Run tests') {
steps {
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') {
sh 'rspec spec --format html --out spec.html'
sh 'bundle exec rspec spec --format html --out spec.html'
}
}
}