Skip to content

Commit

Permalink
Run Prophet against Ruby 2.4
Browse files Browse the repository at this point in the history
this will most likely be a temporary workaround. We should consider
using Travis or similar instead.
  • Loading branch information
thardeck committed Jun 25, 2019
1 parent 5793952 commit 79a35ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion prophet/prophet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
config.execution do
log.info 'Running tests ...'

system("cd ..; (bundle check || sudo bundle install) && bundle exec rake spec:unit")
system("cd ..; (bundle.ruby2.4 check || bundle.ruby2.4 install) && bundle.ruby2.4 exec rake spec:unit")
config.success = ($? == 0)

log.info "Tests are #{config.success ? 'passing' : 'failing'}."
Expand Down
4 changes: 2 additions & 2 deletions prophet/prophet_integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
log.info "Running tests ..."

system(
"cd ..; (bundle check || sudo bundle install) && rake rpm:build &&" \
"SPEC_OPTS='--tag ~matrix:pending' rake spec:integration:acceptance"
"cd ..; (bundle.ruby2.4 check || bundle.ruby2.4 bundle install) && bundle.ruby2.4 exec rake rpm:build &&" \
"SPEC_OPTS='--tag ~matrix:pending' bundle.ruby2.4 exec rake spec:integration:acceptance"
)
config.success = ($? == 0)

Expand Down

0 comments on commit 79a35ff

Please sign in to comment.