mirror of
https://github.com/fxm90/GradientLoadingBar.git
synced 2026-06-16 12:24:31 +00:00
* optimize travis build
This commit is contained in:
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#
|
||||
# pod-lint.sh
|
||||
# Created by Felix Mau (http://felix.hamburg)
|
||||
#
|
||||
|
||||
pod lib lint
|
||||
Executable
+7
@@ -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
|
||||
Executable
+18
@@ -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]}
|
||||
Reference in New Issue
Block a user