version: 2 # use CircleCI 2.0 jobs: "rubocop": docker: - image: circleci/ruby:2.4-node steps: - checkout - run: gem install rubocop - run: name: Run Rubocop command: rubocop - store_test_results: path: test_results "ruby-two-three": docker: - image: circleci/ruby:2.3 - image: rabbitmq:3.7 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-two-four": docker: - image: circleci/ruby:2.4-node - image: rabbitmq:3.7 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-two-five": docker: - image: circleci/ruby:2.5-node - image: rabbitmq:3.7 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-two-six": docker: - image: circleci/ruby:2.6-node - image: rabbitmq:3.7 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-nine-two": docker: - image: circleci/jruby:9.2 - image: rabbitmq:3.7 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: jobs: - rubocop - ruby-two-three: requires: - ruby-two-four filters: branches: only: /\bdevelop\b|\bmaster\b/ - ruby-two-four: requires: - rubocop - ruby-two-five: requires: - ruby-two-four filters: branches: only: /\bdevelop\b|\bmaster\b/ - ruby-two-six: requires: - ruby-two-four filters: branches: only: /\bdevelop\b|\bmaster\b/