Files
GradientLoadingBar/Scripts/test.sh
T
Felix M 3ba663fe83 :: Add codecov.io support (#15)
*  :: Add codecov.io support

* 🐛 :: Fix wrong workspace / scheme name

* ✏️ :: Added shield for code coverage
2019-05-19 07:36:14 +08:00

21 lines
560 B
Bash
Executable File

#
# test.sh
# Created by Felix Mau (https://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/
# - https://github.com/codecov/example-swift
#
#!/bin/bash
cd Example/
xcodebuild \
-workspace GradientLoadingBar.xcworkspace \
-scheme GradientLoadingBar-Example \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone XR,OS=12.2' \
build test | xcpretty && exit ${PIPESTATUS[0]}