Strider-CD / strider

Open Source Continuous Integration & Deployment Server
http://strider-cd.github.io/
4.59k stars 432 forks source link

Strider on Heroku: is it possible to run tests for Rails app cloned from Bitbucket/Github? #644

Closed movstox closed 9 years ago

movstox commented 9 years ago

Hi all,

I've successfully installed Strider on Heroku. However, when I try to test a Ruby project (2.1.1) I find that Ruby installed on Heroku is too old (1.9.3) and I can't update it due to lack of permissions.

Is there a way to make tests running? Thank you.

fernandoneto commented 9 years ago

@movstox unfortunately i don't have the solution for this problem but i can give you a suggestion. maybe for you is better install strider and configure it to use docker containers in top of AWS instance. you can build your docker image with what you need then just push this image to your instance and run your tests.

movstox commented 9 years ago

@fernandoneto thanks!

knownasilya commented 9 years ago

Maybe try to use a custom build pack for Ruby.

knownasilya commented 9 years ago

Reopen if you need additional help.

fny commented 9 years ago

Here's what's needed to get things (nearly) working with Ruby. The only thing that needs to be figured out is #781.

  1. Make sure you have the buildpack set to buildpack-multi: heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
  2. Add the following to .buildpacks:

    https://github.com/mbuchetics/heroku-buildpack-nodejs-grunt#v58
    https://github.com/heroku/heroku-buildpack-ruby.git#v136
    https://github.com/heroku/heroku-buildpack-python.git#v52
  3. Create a Gemfile with the Ruby version you require listed. The Ruby buildpack apparently won't do squat unless this file is present:
# Example Gemfile
source 'https://rubygems.org'
ruby '2.2.1'
tophertoy commented 7 years ago

Did anyone resolve this issue completely (including the #787 issue?