Skip to content

Commit

Permalink
Re-enable coverage stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
eljungsk committed Jul 3, 2019
1 parent 1ef7aee commit 7dbee23
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ notifications:
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia -e 'Pkg.clone(pwd()); Pkg.build("ScatteredInterpolation"); Pkg.test("ScatteredInterpolation"; coverage=true)'
after_success:
- julia -e 'cd(Pkg.dir("ScatteredInterpolation")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
- julia --project=test/coverage -e 'using Pkg; Pkg.instantiate()'
- julia --project=test/coverage test/coverage/coverage.jl

jobs:
include:
Expand Down
3 changes: 3 additions & 0 deletions test/coverage/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[deps]
Coverage = "a2441757-f6aa-5fb2-8edb-039e3f45d037"

10 changes: 10 additions & 0 deletions test/coverage/coverage.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# only push coverage from one bot
get(ENV, "TRAVIS_OS_NAME", nothing) == "linux" || exit(0)
get(ENV, "TRAVIS_JULIA_VERSION", nothing) == "1.0" || exit(0)

using Coverage

cd(joinpath(@__DIR__, "..", "..")) do
Codecov.submit(Codecov.process_folder())
end

0 comments on commit 7dbee23

Please sign in to comment.