Debian Codegraph @

.travis.scripts/coveralls.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 echoscip-shell system . . echo. "...running unit tests and code coverage"
4
5 if [scip-shell system . . `[`. "$COMPILER" == "g++-4.9" ] && [scip-shell system . . `[`. "$TRAVIS_BRANCH" == "master" ] && [scip-shell system . . `[`. "$TRAVIS_PULL_REQUEST" == "false" ];
6 then
7 ## only install if not on home environment (eg travis ci)
8 if [scip-shell system . . `[`. -z "$REFHG19" ]; then
9 sudoscip-shell system . . sudo. pip install cpp-coveralls
10 fi
11 cd seq_test
12
13 ## download the latest matched gcov
14 sudoscip-shell system . . sudo. update-alternatives --install /usr/bin/gcovscip-shell filesystem . . `/usr/bin/gcov`. gcov /usr/bin/gcov-4.9scip-shell filesystem . . `/usr/bin/gcov-4.9`. 90
15 sudoscip-shell system . . sudo. ln -sf /usr/bin/gcov-4.9scip-shell filesystem . . `/usr/bin/gcov-4.9`. /usr/bin/gcovscip-shell filesystem . . `/usr/bin/gcov`.
16 GCOV_VERSION=`gcovscip-shell system . . gcov. --version`
17 echoscip-shell system . . echo. "GCOV version $GCOV_VERSION"
18
19 ## download the test data
20 mkdirscip-shell system . . mkdir. test_data
21 cd test_data
22 wget -r -nH -nd -np -R index.html* https://data.broadinstitute.org/snowman/SeqLib/
23 cd ..
24
25 export LD_LIBRARY_PATH=${BOOST_ROOT}/lib:${LD_LIBRARY_PATH}
26 echoscip-shell system . . echo. "LD_LIBRARY_PATH: $LD_LIBRARY_PATH"
27 ./configure --with-boost=${BOOST_ROOT}
28 makescip-shell system . . make. CXXFLAGS='-DHAVE_C11=1 -std=c++11' CXX=$COMPILER
29 ./seq_test 1> stdout.log 2> stderr.log
30 tailscip-shell system . . tail. -n stderr.log
31
32 EXCL="-e src/non_api -e seq_test/seq_test.cpp -e htslib -e bwa -e fermi-lite -e config.h -e seq_test/config.h -e seq_test/config.h -e src/jsoncpp.cpp -e src/json -e src/SeqLib/ssw.h -e src/SeqLib/ssw_cpp.h -e src/ssw.c -e src/ssw_cpp.cpp -e SeqLib/aho_corasick.hpp -e json/json.h -e SeqLib/ssw.h -e SeqLib/ssw_cpp.h"
33 cpp-coveralls -r ../ -t ${COVERALLS_TOKEN} ${EXCL} ##--dryrun
34 cd ..
35 fi