diff --git a/.codecov.yml b/.codecov.yml
new file mode 100644
index 0000000..b6457ab
--- /dev/null
+++ b/.codecov.yml
@@ -0,0 +1,13 @@
+#
+# codecov.yml
+# Created by Felix Mau (https://felix.hamburg)
+#
+# How to:
+# - https://github.com/codecov/example-swift
+#
+# Documentation:
+# - https://docs.codecov.io/docs/
+#
+
+ignore:
+ - "Example" # ignore test coverage of example application
diff --git a/.travis.yml b/.travis.yml
index d7fae3b..7dd3c08 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,5 +14,7 @@ before_install:
script:
- ./Scripts/swift-format.sh
- ./Scripts/swift-lint.sh
+- ./Scripts/pod-lint.sh
- ./Scripts/test.sh
-- ./Scripts/pod-lint.sh
\ No newline at end of file
+after_success:
+- bash <(curl -s https://codecov.io/bash)
diff --git a/Example/GradientLoadingBar.xcodeproj/xcshareddata/xcschemes/GradientLoadingBar-Example.xcscheme b/Example/GradientLoadingBar.xcodeproj/xcshareddata/xcschemes/GradientLoadingBar-Example.xcscheme
index e4ea7f8..d2fd548 100644
--- a/Example/GradientLoadingBar.xcodeproj/xcshareddata/xcschemes/GradientLoadingBar-Example.xcscheme
+++ b/Example/GradientLoadingBar.xcodeproj/xcshareddata/xcschemes/GradientLoadingBar-Example.xcscheme
@@ -40,7 +40,18 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ codeCoverageEnabled = "YES"
+ onlyGenerateCoverageForSpecifiedTargets = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
+
+
+
+
diff --git a/Scripts/test.sh b/Scripts/test.sh
index 8fe601b..bbc0791 100755
--- a/Scripts/test.sh
+++ b/Scripts/test.sh
@@ -6,6 +6,7 @@
# - 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
@@ -14,8 +15,6 @@ cd Example/
xcodebuild \
-workspace GradientLoadingBar.xcworkspace \
-scheme GradientLoadingBar-Example \
- -enableCodeCoverage YES \
-sdk iphonesimulator \
- -destination 'platform=iOS Simulator,name=iPhone XR,OS=12.0' \
- ONLY_ACTIVE_ARCH=NO \
- test | xcpretty && exit ${PIPESTATUS[0]}
+ -destination 'platform=iOS Simulator,name=iPhone XR,OS=12.2' \
+ build test | xcpretty && exit ${PIPESTATUS[0]}
diff --git a/readme.md b/readme.md
index 1ceaaea..62a930e 100644
--- a/readme.md
+++ b/readme.md
@@ -1,7 +1,7 @@
GradientLoadingBar
====================
- [](https://travis-ci.org/fxm90/GradientLoadingBar) [](http://cocoapods.org/pods/GradientLoadingBar) [](http://cocoapods.org/pods/GradientLoadingBar) [](http://cocoapods.org/pods/GradientLoadingBar)
+ [](https://travis-ci.org/fxm90/GradientLoadingBar)    
A customizable animated gradient loading bar. Inspired by [iOS 7 Progress Bar from Codepen](https://codepen.io/marcobiedermann/pen/LExXWW).