Skip to content

Commit

Permalink
Dirty hack: turn on Coveralls support in .travis.yml
Browse files Browse the repository at this point in the history
Also including debugging info to figure out which directory
the .cov files get written to.
  • Loading branch information
timholy committed Jul 1, 2014
1 parent 524e933 commit 09adfd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ language: cpp
os:
- linux
compiler:
- clang
- gcc
notifications:
email: false
Expand All @@ -26,6 +25,8 @@ before_install:
script:
- make $BUILDOPTS prefix=/tmp/julia install
- cd .. && mv julia julia2
- cd /tmp/julia/share/julia/test && /tmp/julia/bin/julia-debug runtests.jl all
- cd /tmp/julia/share/julia/test && JULIA_CPU_CORES=1 /tmp/julia/bin/julia-debug --code-coverage=all runtests.jl all
- cd - && mv julia2 julia
- cd /tmp/julia/share/julia
- /tmp/julia/bin/julia-debug -e 'Pkg.add("JSON"); Pkg.clone("git://github.com/timholy/Coverage.jl.git"); using Coverage; Coveralls.submit(Coveralls.process_folder("base"))'
- echo "Ready for packaging..."
1 change: 1 addition & 0 deletions src/debuginfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ extern "C" void jl_write_coverage_data(void)
std::ifstream inf(filename.c_str());
if (inf.is_open()) {
std::string outfile = filename + ".cov";
JL_PRINTF(JL_STDOUT, "Writing %s\n", outfile.c_str());
std::ofstream outf(outfile.c_str(), std::ofstream::trunc | std::ofstream::out);
char line[1024];
int l = 1;
Expand Down

0 comments on commit 09adfd5

Please sign in to comment.