From 09adfd5e464934fd5b57a240f723f48176598762 Mon Sep 17 00:00:00 2001 From: timholy Date: Tue, 1 Jul 2014 10:30:31 -0500 Subject: [PATCH] Dirty hack: turn on Coveralls support in .travis.yml Also including debugging info to figure out which directory the .cov files get written to. --- .travis.yml | 5 +++-- src/debuginfo.cpp | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 79bd0acf324f5..7b2e5b061fd4b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,6 @@ language: cpp os: - linux compiler: - - clang - gcc notifications: email: false @@ -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..." diff --git a/src/debuginfo.cpp b/src/debuginfo.cpp index ae5486247b4a6..e92fb0aecd64a 100644 --- a/src/debuginfo.cpp +++ b/src/debuginfo.cpp @@ -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;