# Rake test flappi
version: 2

# Checkout with a fetch and pull
checkout_repo: &checkout
  run:
    name: Checkout
    command: 'git config user.name "circleci" && git config user.email "richard.parratt@sharesight.co.nz" && git fetch && git checkout $CIRCLE_BRANCH && git pull && git checkout master && git pull && git merge --no-edit $CIRCLE_BRANCH && git status'
    working_directory: ~/flappi

# Install Ruby dependencies
run: &bundle_install
  name: Bundle Install
  command: 'pwd && ls && source /usr/local/rvm/scripts/rvm && bundle config --global path ~/flappi/vendor/bundle && bundle --version && bundle install'
  working_directory: ~/flappi

jobs:
  build:

    docker:
      - image: circleci/ruby:2.5.3

    steps:
      - *checkout

      - run: *bundle_install

      - run:
          name: 'Test gem'
          command: rake test
          working_directory: ~/flappi



# Rake test flappi
version: 2

# Checkout with a fetch and pull
checkout_repo: &checkout
  run:
    name: Checkout
    command: 'git config user.name "circleci" && git config user.email "richard.parratt@sharesight.co.nz" && git fetch && git checkout $CIRCLE_BRANCH && git pull && git checkout master && git pull && git merge --no-edit $CIRCLE_BRANCH && git status'
    working_directory: ~/flappi

# Install Ruby dependencies
run: &bundle_install
  name: Bundle Install
  command: 'pwd && ls && source /usr/local/rvm/scripts/rvm && bundle config --global path ~/flappi/vendor/bundle && bundle --version && bundle install'
  working_directory: ~/flappi

jobs:
  build:

    docker:
      - image: circleci/ruby:2.5.3

    steps:
      - checkout

      - *checkout

      - run: *bundle_install

      - run:
          name: 'Test gem'
          command: rake test
          working_directory: ~/flappi



Use circleci checkout to do a clone
Use circleci checkout to do a clone
