Skip to content

Commit

Permalink
Temporary: manually cleanup resources from tests
Browse files Browse the repository at this point in the history
Work-around for JuliaLang/julia#28306
This can be reverted once that is fixed.
  • Loading branch information
timholy committed Jul 27, 2018
1 parent a88f0e6 commit a4c78c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ script:
- julia -e 'using Pkg; Pkg.add(pwd()); Pkg.build("Revise"); Pkg.test("Revise"; coverage=true)'
- JULIA_REVISE_POLL=1 julia --code-coverage -e 'using Pkg; include(Pkg.dir("Revise", "test", "polling.jl"))'

after_success:
after_script: # TODO: change to after_success once https://github.com/JuliaLang/julia/issues/28306 is fixed
# push coverage results to Codecov
- julia -e 'using Pkg; cd(Pkg.dir("Revise")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
# Update the documentation
Expand Down
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -940,4 +940,6 @@ end
end
rm(warnfile)
end

GC.gc() # work-around for https://github.com/JuliaLang/julia/issues/28306
end

0 comments on commit a4c78c6

Please sign in to comment.