Setup reporting code coverage (#21)
This commit is contained in:
committed by
GitHub
parent
10041bc66d
commit
86678c92c8
@@ -0,0 +1,2 @@
|
||||
ignore:
|
||||
- Tests
|
||||
+10
-1
@@ -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,5 +1,6 @@
|
||||
# OpenCombine
|
||||
[](https://travis-ci.org/broadwaylamb/OpenCombine)
|
||||
[](https://codecov.io/gh/broadwaylamb/OpenCombine)
|
||||

|
||||

|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
CombineIdentifierTests:
|
||||
testDefaultInitializedPerformance:
|
||||
maxPercentRelativeStandardDeviation: 1e+1
|
||||
measurement: 1.15590999999142e-4
|
||||
measurement: 1.47168469999883e-4
|
||||
strategy: minimum
|
||||
|
||||
Reference in New Issue
Block a user