Commit 23dddf8c by Dane Springmeyer

more glibc testing into build script to ensure we test right binaries

parent ed7e649b
......@@ -126,10 +126,7 @@ before_script:
fi
script:
- export CXXFLAGS="${CXXFLAGS:-} -include $(pwd)/src/gcc-preinclude.h"
- if [[ "${NODE_VERSION}" ]]; then ./scripts/build_against_node.sh; fi;
- nm lib/binding/*/node_sqlite3.node | grep "GLIBCXX_" | c++filt || true
- nm lib/binding/*/node_sqlite3.node | grep "GLIBC_" | c++filt || true
- if [[ "${NODE_VERSION}" -eq "4" ]]; then ./node_modules/.bin/eslint lib; fi;
# disabled for now: need to port to sudo:false
#- if [[ "${NODE_WEBKIT}" ]]; then ./scripts/build_against_node_webkit.sh; fi;
......@@ -19,7 +19,10 @@ if [[ ${COVERAGE} == true ]]; then
npm test
./py-local/bin/cpp-coveralls --exclude node_modules --exclude tests --build-root build --gcov-options '\-lp' --exclude docs --exclude build/Release/obj/gen --exclude deps > /dev/null
else
npm install --build-from-source --clang=1
echo "building binaries for publishing"
CXXFLAGS="${CXXFLAGS:-} -include $(pwd)/src/gcc-preinclude.h" V=1 npm install --build-from-source --clang=1
nm lib/binding/*/node_sqlite3.node | grep "GLIBCXX_" | c++filt || true
nm lib/binding/*/node_sqlite3.node | grep "GLIBC_" | c++filt || true
npm test
fi
......@@ -27,6 +30,7 @@ fi
publish
# now test building against shared sqlite
echo "building from source to test against external libsqlite3"
export NODE_SQLITE3_JSON1=no
if [[ $(uname -s) == 'Darwin' ]]; then
brew install sqlite
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment