Setup reporting code coverage (#21)

This commit is contained in:
Sergej Jaskiewicz
2019-07-04 05:13:45 +03:00
committed by GitHub
parent 10041bc66d
commit 86678c92c8
4 changed files with 14 additions and 2 deletions
+2
View File
@@ -0,0 +1,2 @@
ignore:
- Tests
+10 -1
View File
@@ -16,7 +16,7 @@ matrix:
- name: "macOS 10.14 | Swift 5.0 | Tests"
os: osx
osx_image: xcode10.2
env: SWIFT_VERSION="5.0"
env: SWIFT_VERSION="5.0" CODE_COVERAGE="YES"
# - name: "macOS 10.14 | Swift 5.1"
# os: osx
# osx_image: xcode10.2
@@ -37,6 +37,9 @@ install:
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then
eval "$(curl -sL https://swiftenv.fuller.li/install.sh)";
fi
- if [[ $CODE_COVERAGE == "YES" ]]; then
gem install xcpretty;
fi
script:
- if [[ $SWIFT_LINT != "YES" ]]; then
swift test -c debug --enable-code-coverage --sanitize thread;
@@ -50,3 +53,9 @@ script:
- if [[ $SWIFT_LINT == "YES" ]]; then
swiftlint lint --strict --reporter "emoji";
fi
after_success:
- if [[ $CODE_COVERAGE == "YES" ]]; then
swift package generate-xcodeproj --enable-code-coverage;
xcodebuild -scheme OpenCombine-Package build test | xcpretty;
bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN;
fi
+1
View File
@@ -1,5 +1,6 @@
# OpenCombine
[![Build Status](https://travis-ci.org/broadwaylamb/OpenCombine.svg?branch=master)](https://travis-ci.org/broadwaylamb/OpenCombine)
[![codecov](https://codecov.io/gh/broadwaylamb/OpenCombine/branch/master/graph/badge.svg)](https://codecov.io/gh/broadwaylamb/OpenCombine)
![Language](https://img.shields.io/badge/Swift-5.0-orange.svg)
![Platform](https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20%7C%20iOS%20%7C%20watchOS%20%7C%20tvOS-lightgrey.svg)
@@ -1,5 +1,5 @@
CombineIdentifierTests:
testDefaultInitializedPerformance:
maxPercentRelativeStandardDeviation: 1e+1
measurement: 1.15590999999142e-4
measurement: 1.47168469999883e-4
strategy: minimum