2014-08-07 05:07:26 -07:00
|
|
|
. "$CI_SCRIPTS/common.sh"
|
|
|
|
|
2014-09-11 10:54:00 -07:00
|
|
|
set_environment /opt/neovim-deps/64
|
2014-08-07 05:07:26 -07:00
|
|
|
|
|
|
|
sudo pip install cpp-coveralls
|
|
|
|
|
|
|
|
clang_version=3.4
|
|
|
|
if [ ! -d /usr/local/clang-$clang_version ]; then
|
|
|
|
echo "Downloading clang $clang_version..."
|
|
|
|
sudo mkdir /usr/local/clang-$clang_version
|
|
|
|
wget -q -O - http://llvm.org/releases/$clang_version/clang+llvm-$clang_version-x86_64-unknown-ubuntu12.04.xz \
|
|
|
|
| sudo tar xJf - --strip-components=1 -C /usr/local/clang-$clang_version
|
|
|
|
fi
|
2014-08-12 23:40:51 -07:00
|
|
|
export CC=/usr/local/clang-$clang_version/bin/clang
|
2014-08-07 05:07:26 -07:00
|
|
|
symbolizer=/usr/local/clang-$clang_version/bin/llvm-symbolizer
|
|
|
|
|
|
|
|
export SANITIZE=1
|
|
|
|
export ASAN_SYMBOLIZER_PATH=$symbolizer
|
|
|
|
export ASAN_OPTIONS="detect_leaks=1:log_path=$tmpdir/asan"
|
|
|
|
export TSAN_OPTIONS="external_symbolizer_path=$symbolizer:log_path=$tmpdir/tsan"
|
|
|
|
|
|
|
|
export SKIP_UNITTEST=1
|
|
|
|
export UBSAN_OPTIONS="log_path=$tmpdir/ubsan" # not sure if this works
|
|
|
|
|
|
|
|
install_dir="$(pwd)/dist"
|
|
|
|
$MAKE_CMD cmake CMAKE_EXTRA_FLAGS="-DTRAVIS_CI_BUILD=ON -DCMAKE_INSTALL_PREFIX=$install_dir -DUSE_GCOV=ON"
|
2014-10-01 15:30:13 -07:00
|
|
|
if ! $MAKE_CMD test; then
|
|
|
|
asan_check "$tmpdir"
|
|
|
|
exit 1
|
|
|
|
fi
|
2014-09-29 05:43:52 -07:00
|
|
|
asan_check "$tmpdir"
|
2014-10-01 15:30:13 -07:00
|
|
|
|
2014-09-29 05:43:52 -07:00
|
|
|
if ! $MAKE_CMD oldtest; then
|
2014-08-07 05:07:26 -07:00
|
|
|
reset
|
|
|
|
asan_check "$tmpdir"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
asan_check "$tmpdir"
|
2014-10-01 15:30:13 -07:00
|
|
|
|
2014-08-07 05:07:26 -07:00
|
|
|
coveralls --encoding iso-8859-1 || echo 'coveralls upload failed.'
|
|
|
|
|
|
|
|
$MAKE_CMD install
|