default: image: "ruby:2.3" before_script: - git config --global user.email "bot@gitlab.com" - git config --global user.name "Bot User" - bundle install -j $(nproc) --path vendor cache: paths: - vendor tags: - gitlab-org workflow: rules: # For merge requests, create a pipeline. - if: '$CI_MERGE_REQUEST_IID' # For `master` branch, create a pipeline (this includes on schedules, pushes, merges, etc.). - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' # For tags, create a pipeline. - if: '$CI_COMMIT_TAG' rspec: script: - bundle exec rspec spec -f d -c rubocop: script: - bundle exec rubocop