version: 2.1 jobs: build: working_directory: ~/project docker: - image: bkuhlmann/alpine-ruby:latest steps: - checkout - restore_cache: name: Bundler Restore keys: - gem-cache-{{.Branch}}-{{checksum "Gemfile.lock"}} - gem-cache- - run: name: Bundler Install command: | gem update --system bundle config set path "vendor/bundle" bundle install - save_cache: name: Bundler Store key: gem-cache-{{.Branch}}-{{checksum "Gemfile.lock"}} paths: - vendor/bundle - run: name: Build command: bundle exec rake <% if configuration.build_simple_cov %> - store_artifacts: name: SimpleCov Artifacts Upload path: ~/project/coverage destination: coverage <% end %>