Skip to content

Commit c561f41

Browse files
authored
Merge pull request #35 from MartinNowak/coverage
track test coverage merged-on-behalf-of: Martin Nowak <code@dawg.eu>
2 parents 8dd93ad + 0d9a48a commit c561f41

File tree

3 files changed

+60
-5
lines changed

3 files changed

+60
-5
lines changed

.codecov.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Documentation: https://github.com/codecov/support/wiki/codecov.yml
2+
3+
codecov:
4+
# CodeCov should only wait for CI's that run coverage tests
5+
# DAutoTester and auto-tester are not in the default list
6+
ci:
7+
- !travis
8+
bot: dlang-bot
9+
10+
coverage:
11+
precision: 3
12+
round: down
13+
range: 80...100
14+
15+
status:
16+
# Learn more at https://codecov.io/docs#yaml_default_commit_status
17+
project: true
18+
patch: true
19+
changes: false
20+
21+
comment: false

.gitignore

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,32 @@
1+
dlang-bot
2+
__test__unittest__
3+
4+
# Created by https://www.gitignore.io/api/d
5+
6+
### D ###
7+
# Compiled Object files
8+
*.o
9+
*.obj
10+
11+
# Compiled Dynamic libraries
12+
*.so
13+
*.dylib
14+
*.dll
15+
16+
# Compiled Static libraries
17+
*.a
18+
*.lib
19+
20+
# Executables
21+
*.exe
22+
23+
# DUB
124
.dub
225
docs.json
326
__dummy.html
4-
*.o
5-
*.obj
6-
dlang-bot
7-
__test__unittest__
27+
docs/
28+
29+
# Code coverage
30+
*.lst
31+
32+
# End of https://www.gitignore.io/api/d

.travis.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,14 @@ language: d
55
d:
66
- dmd-beta
77
- dmd
8-
- dmd-2.070.2
98
- ldc
9+
10+
matrix:
11+
include:
12+
- d: dmd-2.070.2 # the deployment compiler
13+
env: COVERAGE=true
14+
script:
15+
# https://issues.dlang.org/show_bug.cgi?id=13742
16+
- dub test --compiler=$DC --build=unittest-cov --build-mode=singleFile
17+
after_success:
18+
- bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)