Enable coverage
This commit is contained in:
parent
156ec264a2
commit
c42dc02b88
|
|
@ -0,0 +1,5 @@
|
|||
ignore:
|
||||
- "Tests/"
|
||||
|
||||
comment:
|
||||
layout: header, changes, diff
|
||||
|
|
@ -12,7 +12,9 @@ script:
|
|||
- swift package reset
|
||||
- swift build
|
||||
- swift test --enable-code-coverage
|
||||
- xcrun llvm-cov show -instr-profile=.build/debug/codecov/default.profdata .build/debug/FirebladeECSPackageTests.xctest/Contents/MacOS/FirebladeECSPackageTests > coverage.txt
|
||||
|
||||
after_success:
|
||||
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
||||
bash <(curl -s https://codecov.io/bash);
|
||||
bash <(curl -s https://codecov.io/bash) -t cec6c76e-219d-4bc2-aa4e-7161c6320342;
|
||||
fi
|
||||
56
Makefile
56
Makefile
|
|
@ -1,56 +0,0 @@
|
|||
# Version 1.0.0
|
||||
UNAME_S := $(shell uname -s)
|
||||
|
||||
# Lint
|
||||
lint:
|
||||
swiftlint autocorrect --format
|
||||
swiftlint lint --quiet
|
||||
|
||||
lintErrorOnly:
|
||||
@swiftlint autocorrect --format --quiet
|
||||
@swiftlint lint --quiet | grep error
|
||||
|
||||
# Git
|
||||
precommit: lint genLinuxTests
|
||||
|
||||
submodule:
|
||||
git submodule init
|
||||
git submodule update --recursive
|
||||
|
||||
# Tests
|
||||
genLinuxTests:
|
||||
swift test --generate-linuxmain
|
||||
swiftlint autocorrect --format --path Tests/
|
||||
|
||||
test: genLinuxTests
|
||||
swift test
|
||||
|
||||
# Package
|
||||
latest:
|
||||
swift package update
|
||||
|
||||
resolve:
|
||||
swift package resolve
|
||||
|
||||
# Xcode
|
||||
genXcode:
|
||||
swift package generate-xcodeproj --enable-code-coverage --skip-extra-files
|
||||
|
||||
genXcodeOpen: genXcode
|
||||
open *.xcodeproj
|
||||
|
||||
# Clean
|
||||
clean:
|
||||
swift package reset
|
||||
rm -rdf .swiftpm/xcode
|
||||
rm -rdf .build/
|
||||
rm Package.resolved
|
||||
rm .DS_Store
|
||||
|
||||
cleanArtifacts:
|
||||
swift package clean
|
||||
|
||||
# Test links in README
|
||||
# requires <https://github.com/tcort/markdown-link-check>
|
||||
testReadme:
|
||||
markdown-link-check -p -v ./README.md
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
[](https://swift.org/download)
|
||||
[](#)
|
||||
[](#)
|
||||
[](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).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue