diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000..72042e7 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,14 @@ +# Documentation: https://github.com/codecov/support/wiki/codecov.yml + +coverage: + precision: 3 + round: down + range: 80...100 + + status: + # Learn more at https://codecov.io/docs#yaml_default_commit_status + project: true + patch: true + changes: false + +comment: false diff --git a/.gitignore b/.gitignore index 4fdb039..79feee2 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ libvibe_core.a vibe-core-test-* *.exe +*.lst *.obj *.sln dub.selections.json diff --git a/.travis.yml b/.travis.yml index a49e42a..42ca64e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,17 @@ matrix: allow_failures: - env: CONFIG=libasync - d: dmd-beta + include: + - d: dmd + env: CONFIG='select' DUB_FLAGS='--build unittest-cov --build-mode=singleFile' + - d: dmd + env: CONFIG='select' DUB_FLAGS='--build unittest-cov --build-mode=singleFile' + - d: dmd + env: CONFIG='select' DUB_FLAGS='--build unittest-cov --build-mode=singleFile' script: ./travis-ci.sh sudo: false + +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/travis-ci.sh b/travis-ci.sh index 2c8df94..0ee913f 100755 --- a/travis-ci.sh +++ b/travis-ci.sh @@ -2,15 +2,17 @@ set -e -x -o pipefail +DUB_FLAGS=${DUB_FLAGS:-} + # test for successful release build -dub build -b release --compiler=$DC -c $CONFIG +dub build -b release --compiler=$DC -c $CONFIG $DUB_FLAGS # test for successful 32-bit build if [ "$DC" == "dmd" ]; then - dub build --arch=x86 -c $CONFIG + dub build --arch=x86 -c $CONFIG $DUB_FLAGS fi -dub test --compiler=$DC -c $CONFIG +dub test --compiler=$DC -c $CONFIG $DUB_FLAGS if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then for ex in $(\ls -1 examples/); do