At initial CodeCov setup
This commit is contained in:
parent
490037a5bd
commit
e6509bdd2b
14
.codecov.yml
Normal file
14
.codecov.yml
Normal file
|
@ -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
|
10
.travis.yml
10
.travis.yml
|
@ -24,7 +24,17 @@ matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- env: CONFIG=libasync
|
- env: CONFIG=libasync
|
||||||
- d: dmd-beta
|
- d: dmd-beta
|
||||||
|
include:
|
||||||
|
- d: dmd
|
||||||
|
CONFIG="select" DUB_FLAGS="--build unittest-cov --build-mode=singleFile"
|
||||||
|
- d: dmd
|
||||||
|
CONFIG="epoll" DUB_FLAGS"--build unittest-cov --build-mode=singleFile"
|
||||||
|
- d: dmd
|
||||||
|
CONFIG="libasync" DUB_FLAGS="--build unittest-cov --build-mode=singleFile"
|
||||||
|
|
||||||
script: ./travis-ci.sh
|
script: ./travis-ci.sh
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
|
@ -2,15 +2,17 @@
|
||||||
|
|
||||||
set -e -x -o pipefail
|
set -e -x -o pipefail
|
||||||
|
|
||||||
|
DUB_FLAGS=${DUB_FLAGS:-}
|
||||||
|
|
||||||
# test for successful release build
|
# 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
|
# test for successful 32-bit build
|
||||||
if [ "$DC" == "dmd" ]; then
|
if [ "$DC" == "dmd" ]; then
|
||||||
dub build --arch=x86 -c $CONFIG
|
dub build --arch=x86 -c $CONFIG $DUB_FLAGS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dub test --compiler=$DC -c $CONFIG
|
dub test --compiler=$DC -c $CONFIG $DUB_FLAGS
|
||||||
|
|
||||||
if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then
|
if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then
|
||||||
for ex in $(\ls -1 examples/); do
|
for ex in $(\ls -1 examples/); do
|
||||||
|
|
Loading…
Reference in a new issue