version: 2
jobs:
  build:
    docker:
      - image: ruby:2.5.1
    steps:
      - checkout
      - run:
          name: Install and Update Packages
          command: |
            export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
            apt-get update && apt-get dist-upgrade -y
            apt-get install -y sudo wget curl netcat aria2
            curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
            sudo apt-get install -y nodejs build-essential
            sudo -E -H npm install --global npm@latest
            sudo -E -H npm install --global node-gyp
            sudo -E -H npm install --global node-pre-gyp
            sudo -E -H npm install --global yarn
            yarn
            gem install bundler
            bundle install --jobs=$(nproc)
      - run:
          name: Test
          command: |
            bundle exec rake test

version: 2
jobs:
  build:
    docker:
      - image: ruby:2.6.0-preview2-stretch
    steps:
      - checkout
      - run:
          name: Install and Update Packages
          command: |
            export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
            apt-get update && apt-get dist-upgrade -y
            apt-get install -y sudo wget curl netcat aria2
            curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
            sudo apt-get install -y nodejs build-essential
            sudo -E -H npm install --global npm@latest
            sudo -E -H npm install --global node-gyp
            sudo -E -H npm install --global node-pre-gyp
            sudo -E -H npm install --global yarn
            yarn
            gem install bundler
            bundle install --jobs=$(nproc)
      - run:
          name: Test
          command: |
            bundle exec rake test

Update ruby Docker tag to v2.6.0-preview2-stretch
Update ruby Docker tag to v2.6.0-preview2-stretch