.circleci/config.yml in legion-exceptions-0.1.0 vs .circleci/config.yml in legion-exceptions-1.0.1

- old
+ new

@@ -1,167 +1,61 @@ -version: 2 # use CircleCI 2.0 +version: 2.1 +orbs: + ruby: circleci/ruby@0.2.1 + jobs: "rubocop": docker: - - image: circleci/ruby:2.4-node + - image: circleci/ruby:2.5-node steps: - checkout - - run: gem install rubocop + - ruby/load-cache + - ruby/install-deps - run: name: Run Rubocop - command: rubocop - - store_test_results: - path: test_results - "ruby-2.0": + command: bundle exec rubocop + - ruby/save-cache + "ruby-two-five": docker: - - image: circleci/ruby:2.0 + - image: circleci/ruby:2.5 + - image: memcached:1.5-alpine steps: - checkout - - run: - name: Bundle Install - command: bundle install - - run: - name: Run RSpec - command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml - when: always - - store_test_results: - path: test-results - "ruby-2.1": + - ruby/load-cache + - ruby/install-deps + - ruby/run-tests + - ruby/save-cache + "ruby-two-six": docker: - - image: circleci/ruby:2.1 + - image: circleci/ruby:2.6 + - image: memcached:1.5-alpine steps: - checkout - - run: - name: Bundle Install - command: bundle install - - run: - name: Run RSpec - command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml - when: always - - store_test_results: - path: test-results - "ruby-2.2": + - ruby/load-cache + - ruby/install-deps + - ruby/run-tests + - ruby/save-cache + "ruby-two-seven": docker: - - image: circleci/ruby:2.2 + - image: circleci/ruby:2.7 + - image: memcached:1.5-alpine steps: - checkout - - run: - name: Bundle Install - command: bundle install - - run: - name: Run RSpec - command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml - when: always - - store_test_results: - path: test-results + - ruby/load-cache + - ruby/install-deps + - ruby/run-tests + - ruby/save-cache - "ruby-2.3": - docker: - - image: circleci/ruby:2.3 - steps: - - checkout - - run: - name: Bundle Install - command: bundle install - - run: - name: Run RSpec - command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml - when: always - - store_test_results: - path: test-results - - "ruby-2.4": - docker: - - image: circleci/ruby:2.4-node - steps: - - checkout - - run: - name: Bundle Install - command: bundle install - - run: - name: Run RSpec - command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml - when: always - - store_test_results: - path: test-results - "ruby-2.5": - docker: - - image: circleci/ruby:2.5-node - steps: - - checkout - - run: - name: Bundle Install - command: bundle install - - run: - name: Run RSpec - command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml - when: always - - store_test_results: - path: test-results - "ruby-2.6": - docker: - - image: circleci/ruby:2.6-node - steps: - - checkout - - run: - name: Bundle Install - command: bundle install - - run: - name: Run RSpec - command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml - when: always - - store_test_results: - path: test-results - "jruby-9.2": - docker: - - image: circleci/jruby:9.2 - steps: - - checkout - - run: - name: Bundle Install - command: bundle install - - run: - name: Run RSpec - command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml - when: always - - store_test_results: - path: test-results - workflows: version: 2 - cop_rake_deploy: + rubocop-rspec: jobs: - rubocop - # - ruby-2.2: - # requires: - # - ruby-2.4 - # filters: - # branches: - # only: /\bdevelop\b|\bmaster\b/ - - ruby-2.3: + - ruby-two-five: requires: - - ruby-2.4 - filters: - branches: - only: /\bdevelop\b|\bmaster\b/ - - ruby-2.4: - requires: - rubocop - - ruby-2.5: + - ruby-two-six: requires: - - ruby-2.4 - filters: - branches: - only: /\bdevelop\b|\bmaster\b/ - - ruby-2.6: + - ruby-two-five + - ruby-two-seven: requires: - - ruby-2.4 - filters: - branches: - only: /\bdevelop\b|\bmaster\b/ -# - jruby-9.2: -# requires: -# - ruby-2.2 -# - ruby-2.3 -# - ruby-2.4 -# - ruby-2.5 -# - ruby-2.6 + - ruby-two-five \ No newline at end of file