Sha256: 9ad2e8674231e290233c8a7e8c49db55b81986353abcf595cd9c0d3aa2635b4c

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

#!/bin/bash

if [ "x$COVERAGE" = "xyes" ]; then

  # exclude some directories from profiling (.libs is from autotools)
  export EXCLUDE_COVERAGE="--exclude sassc --exclude sass-spec
                             --exclude .libs --exclude debug.hpp
                             --exclude json.cpp --exclude json.hpp
                             --exclude cencode.c --exclude b64
                             --exclude utf8 --exclude utf8_string.hpp
                             --exclude utf8.h --exclude utf8_string.cpp
                             --exclude sass2scss.h --exclude sass2scss.cpp
                             --exclude test --exclude posix"
  # debug via gcovr
  gcov -v
  gcovr -r .
  # debug via coveralls (dump result for futher analyzing)
  coveralls $EXCLUDE_COVERAGE --gcov-options '\-lp' --dump coveralls.json
  # analyze the resulting json
  ./script/coveralls-debug
  # generate and submit report to coveralls.io
  coveralls $EXCLUDE_COVERAGE --gcov-options '\-lp'

else
  echo "skip coverage reporting"
fi

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sassc-0.0.10 ext/libsass/script/ci-report-coverage