mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 21:25:04 -07:00
42d5b526b9
The 'lupa' python package provides a simple way to seamless integrate lua and python code. This commit replaces vroom by a python script that exposes the 'neovim' package to a lua state, and invokes busted to run functional tests. This is a temporary solution that will enable writing functional tests using lua/bused while a lua client library is not available. The reason for dropping vroom is flexibility: Lua/busted has a nice DSL-style syntax while also providing the customization power of a full programming language. Another reason is to use a single framework for unit/functional tests. Two other changes were performed in this commit: - Instead of "gcc-unittest/gcc-ia32", the travis builds for gcc are now identified by "gcc/gcc-32". They will run unit/functional tests for both 64 and 32 bits. - Old integration tests(in src/nvim/testdir) are now ran by the 'oldtest' target
21 lines
463 B
Bash
21 lines
463 B
Bash
. "$CI_SCRIPTS/common.sh"
|
|
|
|
set_environment /opt/neovim-deps/64
|
|
|
|
install_functional_test_deps
|
|
|
|
sudo pip install cpp-coveralls
|
|
|
|
sudo apt-get install valgrind
|
|
|
|
export VALGRIND=1
|
|
export VALGRIND_LOG="$tmpdir/valgrind-%p.log"
|
|
CMAKE_EXTRA_FLAGS="-DTRAVIS_CI_BUILD=ON -DUSE_GCOV=ON"
|
|
|
|
$MAKE_CMD CMAKE_EXTRA_FLAGS="${CMAKE_EXTRA_FLAGS}" unittest
|
|
$MAKE_CMD test
|
|
valgrind_check "$tmpdir"
|
|
$MAKE_CMD oldtest
|
|
|
|
coveralls --encoding iso-8859-1 || echo 'coveralls upload failed.'
|