@@ -0,0 +1,49 @@
8+ - LC_CTYPE=en_US.UTF-8
10+ - WORKSPACE=HueKit.xcworkspace
11+ - IOS_FRAMEWORK_SCHEME="HueKit"
12+ - EXAMPLE_SCHEME="Example"
15+ - DESTINATION="OS=10.0,name=iPhone 7" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="NO" BUILD_EXAMPLE="YES" CODE_COV="NO"
16+ - DESTINATION="OS=11.1,name=iPad Pro (9.7-inch)" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="NO" BUILD_EXAMPLE="YES" CODE_COV="NO"
20+ - xcodebuild -version
21+ - xcodebuild -showsdks
23+ # Build Framework in Debug and Run Tests if specified
24+ - if [ $RUN_TESTS == "YES" ]; then
25+ travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
27+ travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
30+ # Build Framework in Release and Run Tests if specified
31+ - if [ $RUN_TESTS == "YES" ]; then
32+ travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
34+ travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty;
37+ # Build Example in Debug if specified
38+ - if [ $BUILD_EXAMPLE == "YES" ]; then
39+ travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$EXAMPLE_SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
42+ # Build and report code coverage if specified
43+ - if [ $CODE_COV == "YES" ]; then
44+ xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=YES ENABLE_TESTABILITY=YES -enableCodeCoverage YES test;
48+ - bash <(curl -s https://codecov.io/bash)