mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 21:55:17 -07:00
987ee79bb7
* Use bot-ci script at to set up prebuilt dependencies. * Make CI scripts more consistent.
42 lines
832 B
Bash
42 lines
832 B
Bash
. "$CI_SCRIPTS/common.sh"
|
|
|
|
sudo pip install cpp-coveralls
|
|
|
|
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
sudo apt-get install valgrind
|
|
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
brew install valgrind
|
|
else
|
|
echo "Unknown OS '$TRAVIS_OS_NAME'."
|
|
exit 1
|
|
fi
|
|
|
|
setup_prebuilt_deps x64
|
|
|
|
export VALGRIND=1
|
|
export VALGRIND_LOG="$tmpdir/valgrind-%p.log"
|
|
CMAKE_EXTRA_FLAGS="-DTRAVIS_CI_BUILD=ON -DUSE_GCOV=ON"
|
|
|
|
# Build and output version info.
|
|
$MAKE_CMD CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS" nvim
|
|
build/bin/nvim --version
|
|
|
|
# Run unittests.
|
|
make unittest
|
|
|
|
# Run functional tests.
|
|
if ! $MAKE_CMD test; then
|
|
valgrind_check "$tmpdir"
|
|
exit 1
|
|
fi
|
|
valgrind_check "$tmpdir"
|
|
|
|
# Run legacy tests.
|
|
if ! $MAKE_CMD oldtest; then
|
|
valgrind_check "$tmpdir"
|
|
exit 1
|
|
fi
|
|
valgrind_check "$tmpdir"
|
|
|
|
coveralls --encoding iso-8859-1 || echo 'coveralls upload failed.'
|