config.yml 770 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 19 20
  test:
    macos:
      xcode: "10.2.1"
yogevbd's avatar
yogevbd committed
21
      parallelism: 3
yogevbd's avatar
yogevbd committed
22
    steps:
yogevbd's avatar
yogevbd committed
23 24 25 26 27 28
      - 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
29 30
      - run:
          name: Detox iOS CI
yogevbd's avatar
yogevbd committed
31 32
          command: 'npm run test-e2e-ios-release'
workflows:
yogevbd's avatar
yogevbd committed
33
  version: 2
yogevbd's avatar
yogevbd committed
34 35 36 37
  build_and_test:
    jobs:
      - build
      - test