config.yml 798 Bytes
Newer Older
yogevbd's avatar
yogevbd committed
1

yogevbd's avatar
yogevbd committed
2
version: 2
yogevbd's avatar
yogevbd committed
3
jobs:
yogevbd's avatar
yogevbd committed
4
  build:  
yogevbd's avatar
yogevbd committed
5 6
    macos:
      xcode: "10.2.1"
yogevbd's avatar
yogevbd committed
7 8 9 10 11
    steps:
      - checkout
      - run:
          name: Install Dependencies
          command: scripts/install.ios.sh
yogevbd's avatar
yogevbd committed
12 13 14
      - run:
          name: Install Android
          command: scripts/install.android.sh
yogevbd's avatar
yogevbd committed
15
      - run:
yogevbd's avatar
yogevbd committed
16 17
          name: npm install
          command: npm install
yogevbd's avatar
yogevbd committed
18
  test:
yogevbd's avatar
yogevbd committed
19 20
    requires:
      - build
yogevbd's avatar
yogevbd committed
21 22 23 24
    macos:
      xcode: "10.2.1"
      parallelism: 3
    steps:
yogevbd's avatar
yogevbd committed
25 26 27 28 29 30
      - run:
          name: iOS unit tests
          command: 'npm run test-unit-ios'
      - run:
          name: Android unit tests
          command: 'npm run test-unit-android'
yogevbd's avatar
yogevbd committed
31 32
      - run:
          name: Detox iOS CI
yogevbd's avatar
yogevbd committed
33 34 35 36 37 38 39
          command: 'npm run test-e2e-ios-release'
workflows:
  version: 2
  build_and_test:
    jobs:
      - build
      - test