image: ruby:2.4.0 pipelines: branches: master: - step: caches: - bundler script: - gem install bundle rubocop - bundle install - rubocop - rake services: - mysql definitions: services: mysql: image: mysql:5.7 environment: MYSQL_DATABASE: 'legion' MYSQL_ROOT_PASSWORD: 'legion' MYSQL_USER: 'legion' MYSQL_PASSWORD: 'legion' caches: bundler: vendor/bundle