version: 2
jobs:
  build:
    docker:
      - image: circleci/ruby:2.6.0
    environment:
      TZ: "/usr/share/zoneinfo/America/Argentina/Buenos_Aires"
    paralelism: 2
    steps:
      - add_ssh_keys:
          fingerprints:
          - "2b:d1:13:72:6c:a2:d1:4c:30:a5:a7:e5:b4:52:ee:75"
      - run: git config --global user.email "tadp.bot@gmail.com"
      - run: git config --global user.name "GreypineCI"
      - checkout
      - run:
          name: APT Installs
          command: |
            sudo apt-get update
            sudo apt-get install build-essential patch
            sudo apt-get install ruby-dev zlib1g-dev liblzma-dev libgmp-dev cmake
      - run:
          name: Configure Bundler
          command: |
            echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
            source $BASH_ENV
            gem install bundler
      - run:
          name: Install dependencies
          command: bundle install --jobs=10 --retry=3
      - run:
          name: Publishing
          command: bundle exec rake publish

workflows:
  version: 2
  build:
    jobs:
      - build:
          filters:
            branches:
              only: source

version: 2
jobs:
  build:
    docker:
      - image: circleci/ruby:2.6.0
    environment:
      TZ: "/usr/share/zoneinfo/America/Argentina/Buenos_Aires"
    paralelism: 2
    steps:
      - add_ssh_keys:
          fingerprints:
          - "2b:d1:13:72:6c:a2:d1:4c:30:a5:a7:e5:b4:52:ee:75"
      - run: git config --global user.email "tadp.bot@gmail.com"
      - run: git config --global user.name "GreypineCI"
      - checkout
      - run:
          name: APT Installs
          command: |
            sudo apt-get update
            sudo apt-get install build-essential patch
            sudo apt-get install ruby-dev zlib1g-dev liblzma-dev libgmp-dev cmake
      - run:
          name: Configure Bundler
          command: |
            echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
            source $BASH_ENV
            gem install bundler
      - run:
          name: Install dependencies
          command: bundle install --jobs=10 --retry=3
      - run:
          name: Run the tests for backend
          command: bundle exec rake test
      - run:
          name: Publishing
          command: bundle exec rake publish

workflows:
  version: 2
  build:
    jobs:
      - build:
          filters:
            branches:
              only: source
Revert "Prometo que ya agrego los tests"
Revert "Prometo que ya agrego los tests"

This reverts commit e3d7f5d457287de7d22e995296fdf95cf9355177.
