install bundled gems in /vendor, and use bundle exec to run them
parent
f86da2ed6f
commit
3fa1de5e4e
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue