Skip to content

Commit

Permalink
Merge 1a44e2d into f9a1041
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaeckel committed May 7, 2014
2 parents f9a1041 + 1a44e2d commit 6908343
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ compiler:
- gcc
script: bash "${BUILDSCRIPT}" "${BUILDNAME}" "${BUILDOPTIONS}" "makefile" "-DUSE_LTM -DLTM_DESC -I/usr/include" "/usr/lib/libtommath.a"
env:
- BUILDSCRIPT="coverage.sh" BUILDNAME="COVERAGE" BUILDOPTIONS=" "
- BUILDSCRIPT="run.sh" BUILDNAME="STOCK" BUILDOPTIONS=" "
- BUILDSCRIPT="run.sh" BUILDNAME="SMALL" BUILDOPTIONS="-DLTC_SMALL_CODE"
- BUILDSCRIPT="run.sh" BUILDNAME="NOTABLES" BUILDOPTIONS="-DLTC_NO_TABLES"
Expand All @@ -23,6 +24,7 @@ branches:
- develop
before_script:
- sudo apt-get install libtommath-dev
- sudo pip install cpp-coveralls
after_failure:
- cat test_std.txt
- cat test_err.txt
Expand Down
26 changes: 26 additions & 0 deletions coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

if [ -z "$(echo $CC | grep "gcc")" ]; then
echo "no gcc detected, early exit success"
exit 0
fi

# output version
bash printinfo.sh

bash build.sh " $1" " $2" " $3 " "$4 -fprofile-arcs -ftest-coverage " "$5 -lgcov"
if [ -a testok.txt ] && [ -f testok.txt ]; then
echo
else
echo
echo "Test failed"
exit 1
fi

cpp-coveralls

exit 0

# $Source$
# $Revision$
# $Date$

0 comments on commit 6908343

Please sign in to comment.