Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 02cc2a4

Browse files
authored
fix code coverage via travis (#69)
1 parent ed1c214 commit 02cc2a4

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ git:
2828
## uncomment the following lines to override the default test script
2929
#script:
3030
# - julia -e 'Pkg.clone(pwd()); Pkg.build("MetaGraphs"); Pkg.test("MetaGraphs"; coverage=true)'
31+
3132
after_success:
32-
# make documentation
33-
- julia -e 'Pkg.add("Documenter")'
34-
- julia -e 'cd(Pkg.dir("MetaGraphs")); include(joinpath("docs", "make.jl"))'
35-
# push coverage results to Codecov
36-
- julia -e 'cd(Pkg.dir("MetaGraphs")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
33+
- julia -e 'using Pkg; cd(Pkg.dir("MetaGraphs")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
34+
- julia -e 'using Pkg; ps=Pkg.PackageSpec(name="Documenter", version="0.19"); Pkg.add(ps); Pkg.pin(ps)'
35+
- julia -e 'using Pkg; cd(Pkg.dir("MetaGraphs")); include(joinpath("docs", "make.jl"))'

codecov.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
coverage:
2+
status:
3+
patch:
4+
default:
5+
target: '97'
6+
project:
7+
default:
8+
target: '90'
9+
comment:
10+
layout: "header, diff"
11+
behavior: default
12+
require_changes: false # if true: only post the comment if coverage changes
13+
branches: null
14+
flags: null
15+
paths: null

0 commit comments

Comments
 (0)