version: 2.1 # use CircleCI 2.0 jobs: "rubocop": docker: - image: circleci/ruby:2.5-node steps: - checkout - run: gem install rubocop - run: name: Run Rubocop command: rubocop - store_test_results: path: test_results "ruby-two-seven": docker: - image: circleci/ruby:2.7-node - image: mysql:5.7 environment: MYSQL_DATABASE: 'legion' MYSQL_ROOT_PASSWORD: 'legion' MYSQL_USER: 'legion' MYSQL_PASSWORD: 'legion' - 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: mysql:5.7 environment: MYSQL_DATABASE: 'legion' MYSQL_ROOT_PASSWORD: 'legion' MYSQL_USER: 'legion' MYSQL_PASSWORD: 'legion' - 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: mysql:5.7 environment: MYSQL_DATABASE: 'legion' MYSQL_ROOT_PASSWORD: 'legion' MYSQL_USER: 'legion' MYSQL_PASSWORD: 'legion' - 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-jra - image: mysql:5.7 environment: MYSQL_DATABASE: 'legion' MYSQL_ROOT_PASSWORD: 'legion' MYSQL_USER: 'legion' MYSQL_PASSWORD: 'legion' - 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-seven: requires: - ruby-two-five filters: branches: only: /\bdevelop\b|\bmaster\b/ - ruby-two-five: requires: - rubocop - ruby-two-six: requires: - ruby-two-five filters: branches: only: /\bdevelop\b|\bmaster\b/