language: objective-c
osx_image: xcode9.2
sudo: false

cache:
  directories:
  - Carthage
  - Inspector/node_modules

script: ./Scripts/build.sh

branches:
  only:
    - master

env:
# Builds
- ACTION=build TARGET=runner SDK=sim
- ACTION=build TARGET=runner SDK=device

# Analyze
- ACTION=analyze TARGET=lib SDK=sim
- ACTION=analyze TARGET=runner SDK=sim

# Unit tests
- ACTION=unit_test DEST=iphone TARGET=lib SDK=sim
- ACTION=unit_test DEST=ipad TARGET=lib SDK=sim

# Integration tests iPhone
- ACTION=int_test_1 DEST=iphone TARGET=lib SDK=sim
- ACTION=int_test_2 DEST=iphone TARGET=lib SDK=sim
- ACTION=int_test_3 DEST=iphone TARGET=lib SDK=sim

# Integration tests iPad
- ACTION=int_test_1 DEST=ipad TARGET=lib SDK=sim
- ACTION=int_test_2 DEST=ipad TARGET=lib SDK=sim
- ACTION=int_test_3 DEST=ipad TARGET=lib SDK=sim
