version: 2.1 # 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-zero": docker: - image: circleci/ruby:2.0 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-one": docker: - image: circleci/ruby:2.1 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-two": docker: - image: circleci/ruby:2.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 "ruby-two-three": 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-two-four": 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-two-five": 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-two-six": 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-nine-two": 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: jobs: - rubocop # - ruby-two-two: # requires: # - ruby-two-four # filters: # branches: # only: /\bdevelop\b|\bmaster\b/ - 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/ # - jruby-nine-two: # requires: # - ruby-two-two # - ruby-two-three # - ruby-two-four # - ruby-two-five # - ruby-two-six