CircleCI-Public / circleci-demo-ruby-rails

A CircleCI demo project using Ruby and Rails
https://circleci.com/gh/CircleCI-Public/circleci-demo-ruby-rails
MIT License
78 stars 293 forks source link

Running rspec in Circle CI #12

Open plamenGo opened 5 years ago

plamenGo commented 5 years ago

Hey guys, the sample .circleci config does not work for me. It always chokes on not being able to find bundle. All I'm trying to do is run rspec on .circle ci.

This is the config I have so far:

version: 2 jobs: build: parallelism: 3 docker:

And this is the output where it fails:

Which bundler? (0)00:00 Exit code: 127

!/bin/bash -eo pipefail

bundle -v /bin/bash: bundle: command not found Exited with code 127

AlecRust commented 5 years ago

Same issue, I have to install bundler manually. Should it somehow be available without this?

jasonfb commented 3 years ago
jobs:
  build:
    executor: default
    steps:
      - run:
          name: Force Bundler Version
          command: |
            sudo gem update --system
            echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
            source $BASH_ENV
            gem install bundler