machine:
  ruby:
    version: 2.3.0
  environment:
    KNAPSACK_REPO_PATH: ~/gems/knapsack
dependencies:
  pre:
    - mkdir ~/gems
    - cd ~/gems && git clone -b $CIRCLE_BRANCH --single-branch git@github.com:ArturT/knapsack.git
    - cd ~/gems/knapsack && git branch
    - cd ~/gems/knapsack && git log -n 1 | more
test:
  pre:
    - bundler --version
  override:
    #- KNAPSACK_GENERATE_REPORT=true bundle exec rspec spec
    - bundle exec rake knapsack:rspec:
        parallel: true

    #- KNAPSACK_GENERATE_REPORT=true bundle exec cucumber features
    - bundle exec rake knapsack:cucumber:
        parallel: true

    #- KNAPSACK_GENERATE_REPORT=true bundle exec rake test
    - bundle exec rake knapsack:minitest[--verbose]:
        parallel: true

machine:
  ruby:
    version: 2.3.0
  environment:
    KNAPSACK_REPO_PATH: ~/gems/knapsack
dependencies:
  pre:
    # fix bug: https://discuss.circleci.com/t/bundler-fails-to-find-appropriate-version-despite-installing-appropriate-version-earlier-in-the-build/2815/36
    - echo "export rvm_ignore_gemsets_flag=1" >> ~/.rvmrc
    - gem install bundler

    - mkdir ~/gems
    - cd ~/gems && git clone -b $CIRCLE_BRANCH --single-branch git@github.com:ArturT/knapsack.git
    - cd ~/gems/knapsack && git branch
    - cd ~/gems/knapsack && git log -n 1 | more
test:
  pre:
    - bundler --version
  override:
    #- KNAPSACK_GENERATE_REPORT=true bundle exec rspec spec
    - bundle exec rake knapsack:rspec:
        parallel: true

    #- KNAPSACK_GENERATE_REPORT=true bundle exec cucumber features
    - bundle exec rake knapsack:cucumber:
        parallel: true

    #- KNAPSACK_GENERATE_REPORT=true bundle exec rake test
    - bundle exec rake knapsack:minitest[--verbose]:
        parallel: true

Add fix for random failed bundler on CI
Add fix for random failed bundler on CI
