CircleCI - netguru/highway GitHub Wiki

# For a detailed guide to building and testing on iOS, read the docs:
# https://circleci.com/docs/2.0/testing-ios/

version: 2.1

orbs:
  bundle-install: toshimaru/[email protected]

jobs:
  unit_tests:
    macos:
      xcode: 11.3.1 # Specify the Xcode version to use
    environment:
      BUILD_NUMBER: $CIRCLE_BUILD_NUM
      DEPLOY_DIR: ./

    steps:
      - checkout
      - bundle-install/bundle-install
      - run: brew install gpg
      - run: brew install p7zip
      - run: bundle exec fastlane highway preset:unit_tests

  qa_build:
    macos:
      xcode: 11.3.1 # Specify the Xcode version to use
    environment:
      BUILD_NUMBER: $CIRCLE_BUILD_NUM
      DEPLOY_DIR: ./

    steps:
      - checkout
      - bundle-install/bundle-install
      - run: brew install gpg
      - run: brew install p7zip
      - run: bundle exec fastlane highway preset:staging

workflows:
  run_unit_tests:
    jobs:
      - unit_tests:
          filters:
            branches:
              only:
                - /task\/.*/

  generate_qa_build:
    jobs:
      - qa_build:
          filters:
            branches:
              only:
                - master