Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

RoR pipeline - bash: rubocop: command not found

Ignacio Martínez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 20, 2019

This is my .yml file

image: ruby:2.6.2

pipelines:
default:
- step:
caches:
- bundler
script:
- apt-get update
- apt-get install -y nodejs
- bundle install --path vendor/bundle
- rubocop
- rake db:create
- rake db:migrate
- rake db:seed
- paraspec -c 4
services:
- mysql

definitions:
caches:
bundler: vendor/bundle
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: 'myfertility_test'
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_USER: 'test_user'
MYSQL_PASSWORD: 'test_user_password'
LOG_PATH: '/log'

This used to work just fine before, when I used image: ruby: 2.3.1 but now it won't find rubocop even though it's being installed by bundle install --path vendor/bundle

Fetching rubocop 0.32.1
Installing rubocop 0.32.1
+ rubocop
bash: rubocop: command not found

I kind of fixed it by adding - gem install rubocop -v '~> 0.32.1' but later had the same error with paraspec which wasn't fixed by adding - gem install paraspec

Am I missing something?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events