Refinements

This commit is contained in:
Christian Treffs 2020-06-26 16:49:26 +02:00
parent c42dc02b88
commit aee5d32113
No known key found for this signature in database
GPG Key ID: 49A4B4B460BE3ED4
2 changed files with 58 additions and 2 deletions

View File

@ -12,9 +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
- 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) -t cec6c76e-219d-4bc2-aa4e-7161c6320342;
bash <(curl -s https://codecov.io/bash);
fi

56
Makefile Normal file
View File

@ -0,0 +1,56 @@
# 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