Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
language: julia
os:
- linux
os: linux
dist: xenial
julia:
- 1.0
- 1.0 # LTS
- 1 # currently 1.5
- nightly
branches:
only:
- master
notifications:
email: false
script:
- julia -e 'using Pkg; Pkg.build(); Pkg.test("CoverageBase"; coverage=true)'
- julia -e 'using Pkg; Pkg.add(PackageSpec(name="Coverage", rev="master")); using Coverage; Codecov.submit(Codecov.process_folder())'
codecov: true
98 changes: 0 additions & 98 deletions Manifest.toml

This file was deleted.

19 changes: 16 additions & 3 deletions src/CoverageBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,24 @@ function runtests(names)
testdir = joinpath(topdir, "test")
julia = julia_cmd()
script = """
using Distributed # from runtests.jl
push!(empty!(LOAD_PATH), "@stdlib") # don't inherit CoverageBase's Manifest
using Distributed, Test # from runtests.jl
print_testworker_started(swallow...) = nothing
include("testdefs.jl")
@time testresult = runtests(ARGS[1], ARGS[2])
# TODO: exit(testresult.anynonpass ? 1 : 0)
let
@time testresult = runtests(ARGS[1], ARGS[2])[1]
if testresult isa Test.TestSetException
for t in testresult.errors_and_fails
show(t)
println()
end
if testresult.fail + testresult.error > 0
throw(testresult)
end
elseif testresult isa Exception
throw(testresult)
end
end
"""
anyfail = false
cd(testdir) do
Expand Down