From 02a9f880f0829a696c87b3347799073562b96ce9 Mon Sep 17 00:00:00 2001 From: Ethan Huang Date: Fri, 12 Jul 2019 17:05:39 +0800 Subject: [PATCH] [Added] codecov --- .travis.yml | 7 +++++-- README.md | 1 + .../xcschemes/AttributedTextSample.xcscheme | 19 ++++++++++++++++++- ...File.swift => StaticComponentsTests.swift} | 0 4 files changed, 24 insertions(+), 3 deletions(-) rename Tests/NSAttributedStringBuilderTests/{File.swift => StaticComponentsTests.swift} (100%) diff --git a/.travis.yml b/.travis.yml index 435ebd4..9065ff5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,6 @@ -language: objective-c +language: swift osx_image: xcode11 -script: xcodebuild -sdk iphonesimulator -project ./SwiftUISampleApp/AttributedTextSample.xcodeproj -scheme AttributedTextSample -destination 'platform=iOS Simulator,name=iPhone Xʀ,OS=13.0' test +script: + - xcodebuild -sdk iphonesimulator -project ./SwiftUISampleApp/AttributedTextSample.xcodeproj -scheme AttributedTextSample -destination 'platform=iOS Simulator,name=iPhone Xʀ,OS=13.0' test +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 2226ffc..dd7b089 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # NSAttributedStringBuilder [![Build Status](https://travis-ci.org/ethanhuang13/NSAttributedStringBuilder.svg?branch=master)](https://travis-ci.org/ethanhuang13/NSAttributedStringBuilder) +[![codecov](https://codecov.io/gh/ethanhuang13/NSAttributedStringBuilder/branch/master/graph/badge.svg)](https://codecov.io/gh/ethanhuang13/NSAttributedStringBuilder) [![GitHub release](https://img.shields.io/github/release/ethanhuang13/nsattributedstringbuilder.svg)]() ![GitHub top language](https://img.shields.io/github/languages/top/ethanhuang13/nsattributedstringbuilder.svg) [![License](https://img.shields.io/github/license/ethanhuang13/nsattributedstringbuilder.svg)](https://github.com/ethanhuang13/ladybug/blob/master/LICENSE) diff --git a/SwiftUISampleApp/AttributedTextSample.xcodeproj/xcshareddata/xcschemes/AttributedTextSample.xcscheme b/SwiftUISampleApp/AttributedTextSample.xcodeproj/xcshareddata/xcschemes/AttributedTextSample.xcscheme index 2e11943..4373f79 100644 --- a/SwiftUISampleApp/AttributedTextSample.xcodeproj/xcshareddata/xcschemes/AttributedTextSample.xcscheme +++ b/SwiftUISampleApp/AttributedTextSample.xcodeproj/xcshareddata/xcschemes/AttributedTextSample.xcscheme @@ -27,7 +27,24 @@ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES" - codeCoverageEnabled = "YES"> + codeCoverageEnabled = "YES" + onlyGenerateCoverageForSpecifiedTargets = "YES"> + + + + + + diff --git a/Tests/NSAttributedStringBuilderTests/File.swift b/Tests/NSAttributedStringBuilderTests/StaticComponentsTests.swift similarity index 100% rename from Tests/NSAttributedStringBuilderTests/File.swift rename to Tests/NSAttributedStringBuilderTests/StaticComponentsTests.swift