version: 2
jobs:
  build:
    macos:
      xcode: '10.0.0'
    steps:
    - checkout
    - run: gem install fastlane --no-rdoc --no-ri --no-document
    - run: make test_macOS
    - run: make test_tvOS
    - run: make test_iOS
    - run: make test_iOS_9
    - run: make test_macOS_report
    - run: make test_tvOS_report
    - run: make test_iOS_report
    - store_test_results:
        path: test_reports

version: 2
jobs:
  build:
    macos:
      xcode: '10.0.0'
    environment:
      GEM_HOME: .gem
      GEM_PATH: .gem
    steps:
    - checkout
    - run: gem install fastlane --no-rdoc --no-ri --no-document
    - run: echo 'export PATH=$GEM_PATH:$PATH' >> $BASH_ENV
    - run: make test_macOS
    - run: make test_tvOS
    - run: make test_iOS
    - run: make test_iOS_9
    - run: make test_macOS_report
    - run: make test_tvOS_report
    - run: make test_iOS_report
    - store_test_results:
        path: test_reports

Install the latest version of fastlane in the relative .gem directory
Install the latest version of fastlane in the relative .gem directory

Also adjust the $PATH so that the latest fastlane is used, see https://discuss.circleci.com/t/how-to-add-a-path-to-path-in-circle-2-0/11554/4
