Sha256: 9bcefc92649cb00d35cddbcc17cd0956c27a5a537eb348cb158a418394ccd946

Contents?: true

Size: 1.6 KB

Versions: 2

Compression:

Stored size: 1.6 KB

Contents

version: 2.1


orbs:
  ruby: circleci/ruby@2.0.0
  win: circleci/windows@5.0.0


commands:
  install_windows_requirements:
    description: "Install windows requirements"
    steps:
      - run:
          name: "Install MSYS2"
          command: choco install msys2 -y
      - run:
          name: "Install Ruby devkit"
          command: ridk install 2 3
  bundle-install:
    description: "Install dependencies"
    steps:
      - run:
          name: Which bundler?
          command: ruby -v; bundle -v
      - run:
          name: Bundle install
          command: bundle install
  run-tests:
    description: "Run tests"
    steps:
      - run:
          name: Run tests
          command: bundle exec rake spec SPEC_OPTS="-fd"
  run-tests-flow:
    description: "Single flow for running tests"
    steps:
      - checkout
      - bundle-install
      - run-tests


jobs:

  ruby_27:
    docker:
      - image: cimg/ruby:2.7-browsers
    steps:
      - run-tests-flow

  ruby_30:
    docker:
      - image: cimg/ruby:3.0-browsers
    steps:
      - run-tests-flow

  ruby_31:
    docker:
      - image: cimg/ruby:3.1-browsers
    steps:
      - run-tests-flow

  ruby_32:
    docker:
      - image: cimg/ruby:3.2-browsers
    steps:
      - run-tests-flow

  win_ruby:
    executor:
      name: win/default
      shell: powershell.exe
    steps:
      - install_windows_requirements
      - run:
          name: "Install bundler"
          shell: powershell.exe
          command: gem install bundler
      - run-tests-flow


workflows:
  tests:
    jobs:
      - ruby_27
      - ruby_30
      - ruby_31
      - ruby_32
      - win_ruby

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
td-0.17.1 .circleci/config.yml
td-0.17.0 .circleci/config.yml