diff --git a/.travis.yml b/.travis.yml index 6920fd0..123ff12 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,3 +13,7 @@ before_install: script: - ./Package-Builder/build-package.sh $TRAVIS_BUILD_DIR + +after_success: + - sh ./common/coverage.sh + diff --git a/common/coverage.sh b/common/coverage.sh new file mode 100644 index 0000000..4efe8a2 --- /dev/null +++ b/common/coverage.sh @@ -0,0 +1,4 @@ +if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then + xcodebuild -scheme MagickWand -project MagickWand.xcodeproj -sdk macosx -configuration Release -enableCodeCoverage YES test build test + bash <(curl -s https://codecov.io/bash) +fi