Add codecov badge to README.md

This commit is contained in:
Yasuhiro Hatta 2019-01-12 12:14:44 +09:00
parent 08dc214a40
commit c0d5346d88
3 changed files with 19 additions and 3 deletions

View File

@ -6,6 +6,8 @@ sudo: required
dist: trusty
osx_image: xcode10.1
install:
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"; fi
script:
- swift test
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild test -scheme ULID-macOS; else swift test; fi
after_success:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bash <(curl -s https://codecov.io/bash); fi

View File

@ -1 +1,4 @@
# ULID.swift
# ULID.swift
[![Build Status](https://travis-ci.org/yaslab/ULID.swift.svg?branch=master)](https://travis-ci.org/yaslab/ULID.swift)
[![codecov](https://codecov.io/gh/yaslab/ULID.swift/branch/master/graph/badge.svg)](https://codecov.io/gh/yaslab/ULID.swift)

View File

@ -26,7 +26,18 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
codeCoverageEnabled = "YES"
onlyGenerateCoverageForSpecifiedTargets = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
<CodeCoverageTargets>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0ED32C0521E96CA200430998"
BuildableName = "ULID.framework"
BlueprintName = "ULID-macOS"
ReferencedContainer = "container:ULID.xcodeproj">
</BuildableReference>
</CodeCoverageTargets>
<Testables>
<TestableReference
skipped = "NO">