* optimize travis build

This commit is contained in:
Felix Mau
2018-01-20 12:57:19 +01:00
parent 62d9da622b
commit 7ce71ffa5e
7 changed files with 49 additions and 20 deletions
+6
View File
@@ -0,0 +1,6 @@
#
# pod-lint.sh
# Created by Felix Mau (http://felix.hamburg)
#
pod lib lint
+7
View File
@@ -0,0 +1,7 @@
#
# swift-lint.sh
# Created by Felix Mau (http://felix.hamburg)
#
# Run "swiftlint" and break build on any warnings
cd Example && swiftlint --strict
+18
View File
@@ -0,0 +1,18 @@
#
# 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/
#
xcodebuild \
-workspace Example/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]}