.gitlab-ci.yml
rspec:
image: ruby:2.2
script:
- bundle install --path /cache --jobs $(nproc)
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- bundle exec rspec
- ./cc-test-reporter after-build --exit-code $?