lib/gemsmith/templates/%gem_name%/circle.yml.tt in gemsmith-11.0.1 vs lib/gemsmith/templates/%gem_name%/circle.yml.tt in gemsmith-11.1.0

- old
+ new

@@ -1,11 +1,41 @@ -dependencies: - pre: - - gem update --system - - gem update bundler -test: - override: - - bundle exec rake +version: 2 +jobs: + build: + working_directory: ~/project + docker: + - image: circleci/ruby:<%= config.dig(:versions, :ruby) %> + environment: + BUNDLE_JOBS: 3 + BUNDLE_RETRY: 3 + BUNDLE_PATH: vendor/bundle + EDITOR: vim + RAILS_ENV: test + steps: + - checkout + + - type: cache-restore + name: Bundler Cache Restore + key: bundle-{{ checksum "Gemfile" }} + + - run: + name: Bundler Install + command: | + gem update --system + bundle check || bundle install + gem install rails + + - type: cache-save + name: Bundler Cache Store + key: bundle-{{ checksum "Gemfile" }} + paths: + - vendor/bundle + + - run: + name: Rake Run + command: bundle exec rake + <%- if config.dig(:generate, :code_climate) -%> - post: - - bundle exec codeclimate-test-reporter + - run: + name: Code Climate Analyze + command: bundle exec codeclimate-test-reporter <%- end -%>