Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable code coverage #219

Open
wants to merge 3 commits into
base: latest
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ osx_image: xcode11
install:
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
env:
- SWIFT_VERSION=5.0
- SWIFT_VERSION=5.0.1
- SWIFT_VERSION=5.1-DEVELOPMENT-SNAPSHOT-2019-08-14-a
- SWIFT_VERSION=5.0 CODECOV_TOKEN=7eef894d-9ca9-4cac-9356-04dd8ab8a73b
- SWIFT_VERSION=5.0.1 CODECOV_TOKEN=7eef894d-9ca9-4cac-9356-04dd8ab8a73b
- SWIFT_VERSION=5.1-DEVELOPMENT-SNAPSHOT-2019-08-14-a CODECOV_TOKEN=7eef894d-9ca9-4cac-9356-04dd8ab8a73b
script:
- swift package update
- swift test -c release
- if [ $TRAVIS_OS_NAME = 'osx' ]; then
swift package generate-xcodeproj;
xcodebuild -quiet -project Structure.xcodeproj -scheme Structure-Package -enableCodeCoverage YES build test;
bash <(curl -s https://codecov.io/bash);
else
swift test -c release;
fi
after_success:
- git clone https://github.com/dn-m/Documentarian && cd Documentarian
- swift build -c release -Xswiftc -static-stdlib
Expand Down
Empty file added codecov.yml
Empty file.