Hi Cristóvão, I'm also baffled by this. Its working for, e.g. the package itself, RationalSimplex,jl, and SIUnits.jl, but not working for JuMP.jl, due to that exact error.
I'm going to add a try-catch so at least it won't cause the Travis build to go wrong. I'll add that cd() - you are right, its a little subtle. I'll reply here if I figure out the issue. Thanks, Iain On Wednesday, May 7, 2014 9:41:34 AM UTC-4, Cristóvão Duarte Sousa wrote: > > Hi, thanks for this package. > > I've setup two repositories for using Coverage.jl with similar .travis.yml > files. > One works and do the reports well. The other gives an "HTTP Parser > Exception" (see [1]) > when doing the report; which I can reproduce in my system doing > export TRAVIS_JOB_ID=30; julia -e 'using Coverage; > Coveralls.submit(Coveralls.process_folder())' > Any clue about what can be happening? > > A suggestion: > Since default .travis.yml files created by Julia run the tests from the > download folder rather than from > the "Pkg.dir", I suggest adding the ``cd(Pkg.dir("MyPackage"))`` to the > examples lines: > - julia --code-coverage test/runtests.jl > - julia -e 'cd(Pkg.dir("MyPackage")); Pkg.add("Coverage"); using > Coverage; Coveralls.submit(Coveralls.process_folder())' > instead of having it has a note. That was something not obvious to me and > it took me a > while untill I understand I had to do ``cd(Pkg.dir("MyPackage"))`` and why. > > Thanks again, > Cristóvão D. Sousa > > [1] https://travis-ci.org/cdsousa/Robotics.jl/builds/24621799#L280 > > > On Wednesday, May 7, 2014 3:58:54 AM UTC+1, Iain Dunning wrote: >> >> Hi all, >> >> I'd like to announce Coverage.jl >> https://github.com/IainNZ/Coverage.jl<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FIainNZ%2FCoverage.jl&sa=D&sntz=1&usg=AFQjCNGkbmKTiNIwrGZSLpovUq1LHiywlg> >> >> As of Julia 0.3, there is a command-line flag, --code-coverage, that >> tells you how many times each line in a file is run. >> >> Coverage.jl takes this data, bundles it up, and sends it to >> Coveralls.io<http://coveralls.io>, >> a website the works with your CI system of choice to track your test >> coverage. >> >> More information is in the README. >> >> Its pretty simple to use: after enabling tracking on Coveralls.io, change >> your "run the tests line" to use the --code-coverage flag, then put >> something like the following in: >> >> - julia -e 'Pkg.add("Coverage"); using Coverage; >> Coveralls.submit(Coveralls.process_folder())' >> >> Here is a simple working example: >> https://github.com/IainNZ/RationalSimplex.jl >> >> Its pretty basic and not really robust right now, so of course Pull >> Requests welcome. >> >> Thanks, >> Iain >> >