blob: b707da483208db01a9766b2c5019573a1656ae05 [file]
language: objective-c
osx_image: xcode9.2
sudo: false
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- LANGUAGE=en_US.UTF-8
matrix:
include:
- osx_image: xcode9.2
env: COVERAGE=code_coverage SDK="iphonesimulator11.2" DESTINATION="name=iPhone 6s,OS=11.2"
- osx_image: xcode9.2
env: SDK="iphonesimulator11.2" DESTINATION="name=iPhone 6s,OS=10.3.1"
- osx_image: xcode9.2
env: SDK="iphonesimulator11.2" DESTINATION="name=iPhone 6s,OS=9.3"
before_install:
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
- pod install
script:
- set -o pipefail
- xcodebuild test -workspace MotionInterchange.xcworkspace -scheme MotionInterchangeCatalog -sdk "$SDK" -destination "$DESTINATION" -enableCodeCoverage YES ONLY_ACTIVE_ARCH=YES | xcpretty -c;
after_success:
- if [ "$COVERAGE" == "code_coverage" ]; then
bash <(curl -s https://codecov.io/bash);
fi
- bash <(curl -s https://codecov.io/bash)