1set -e 2 3JOBS=${JOBS:-1} 4export UBSAN_OPTIONS=halt_on_error=1 5export ASAN_OPTIONS=halt_on_error=1 6export MAKEFLAGS="-j$JOBS" 7 8config=$1 9echo "" 10echo "Build Flatbuffers project for '$config' with jobs=$JOBS" 11 12cmake . -DCMAKE_BUILD_TYPE=$config \ 13 -DFLATBUFFERS_BUILD_TESTS=ON -DFLATBUFFERS_CODE_SANITIZE=ON 14cmake --build . --target all --clean-first -- -j$JOBS 15ctest --extra-verbose --output-on-failure -j$JOBS 16 17echo "Check generated code" 18.travis/check-generate-code.sh 19 20echo "C++ tests done" 21