From 3b7dc27fb5497903145a52413116fad25fbaf138 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Tue, 24 Jan 2017 10:00:28 -0800 Subject: Fixed amalgamated build and added test. --- travis.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'travis.sh') diff --git a/travis.sh b/travis.sh index 5c099a2..413015a 100755 --- a/travis.sh +++ b/travis.sh @@ -107,6 +107,17 @@ ndebug_script() { make test } +# Tests the amalgamated build (this ensures that the different .c files +# don't have symbols or macros that conflict with each other. +amalgamated_install() { + : +} +amalgamated_script() { + # Override of USER_CPPFLAGS removes -UNDEBUG. + export USER_CPPFLAGS="-UNDEBUG" + make amalgamated +} + # A run that executes with coverage support and uploads to coveralls.io coverage_install() { sudo apt-get update -qq @@ -145,6 +156,7 @@ if [ "$1" == "local" ]; then run_config "lua" run_config "ndebug" run_config "genfiles" + run_config "amalgamated" exit fi -- cgit v1.2.3