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?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.