Merge pull request #8 from fireblade-engine/feature/codecov

Add codecov.io support
This commit is contained in:
Christian Treffs 2020-06-26 17:06:00 +02:00 committed by GitHub
commit ca770b0b34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 1 deletions

5
.codecov.yml Normal file
View File

@ -0,0 +1,5 @@
ignore:
- "Tests/"
comment:
layout: header, changes, diff

View File

@ -5,9 +5,16 @@ language: generic
sudo: required
dist: bionic
osx_image: xcode11
env: SWIFT_VERSION=5.1
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"; fi
script:
- swift package reset
- swift build
- swift test
- swift test --enable-code-coverage
- xcrun llvm-cov show -instr-profile=.build/debug/codecov/default.profdata .build/debug/FirebladeECSPackageTests.xctest/Contents/MacOS/FirebladeECSPackageTests > fireblade_ecs_coverage.txt
after_success:
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
bash <(curl -s https://codecov.io/bash);
fi

View File

@ -4,6 +4,7 @@
[![swift version](https://img.shields.io/badge/swift-5.1+-brightgreen.svg)](https://swift.org/download)
[![platforms](https://img.shields.io/badge/platforms-%20macOS%20|%20iOS%20|%20tvOS%20|%20watchOS-brightgreen.svg)](#)
[![platforms](https://img.shields.io/badge/platforms-linux-brightgreen.svg)](#)
[![codecov](https://codecov.io/gh/fireblade-engine/ecs/branch/master/graph/badge.svg)](https://codecov.io/gh/fireblade-engine/ecs)
This is a **dependency free**, **lightweight**, **fast** and **easy to use** [Entity-Component System](https://en.wikipedia.org/wiki/Entity_component_system) implementation in Swift. It is developed and maintained as part of the [Fireblade Game Engine project](https://github.com/fireblade-engine).