Files
GradientLoadingBar/Scripts/test.sh
T
Felix Mau 02b46e9dd5 * optimize linter scripts
* run linter as pods to handle pull requests without formatting issues
2018-01-27 13:26:01 +01:00

21 lines
557 B
Bash
Executable File

#
# test.sh
# Created by Felix Mau (http://felix.hamburg)
#
# Based on:
# - http://www.mokacoding.com/blog/running-tests-from-the-terminal/
# - https://github.com/supermarin/xcpretty#usage
# - https://www.objc.io/issues/6-build-tools/travis-ci/
#
#!/bin/bash
cd Example/
xcodebuild \
-workspace GradientLoadingBar.xcworkspace \
-scheme GradientLoadingBar-Example \
-enableCodeCoverage YES \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone X,OS=11.2' \
ONLY_ACTIVE_ARCH=NO \
test | xcpretty && exit ${PIPESTATUS[0]}