2014-08-07 05:07:26 -07:00
|
|
|
. "$CI_SCRIPTS/common.sh"
|
2014-08-08 03:15:19 -07:00
|
|
|
|
2015-04-26 01:17:11 -07:00
|
|
|
sudo apt-get install gcc-multilib g++-multilib
|
2014-08-07 05:07:26 -07:00
|
|
|
|
2014-11-28 15:23:12 -07:00
|
|
|
setup_deps x86
|
|
|
|
|
2014-09-11 02:06:43 -07:00
|
|
|
CMAKE_EXTRA_FLAGS="-DTRAVIS_CI_BUILD=ON \
|
2014-08-07 05:07:26 -07:00
|
|
|
-DCMAKE_SYSTEM_PROCESSOR=i386 \
|
|
|
|
-DCMAKE_SYSTEM_LIBRARY_PATH=/lib32:/usr/lib32:/usr/local/lib32 \
|
|
|
|
-DFIND_LIBRARY_USE_LIB64_PATHS=OFF \
|
|
|
|
-DCMAKE_IGNORE_PATH=/lib:/usr/lib:/usr/local/lib \
|
2014-11-28 15:23:12 -07:00
|
|
|
-DCMAKE_TOOLCHAIN_FILE=$TRAVIS_BUILD_DIR/cmake/i386-linux-gnu.toolchain.cmake \
|
2014-12-04 03:03:48 -07:00
|
|
|
-DBUSTED_OUTPUT_TYPE=plainTerminal"
|
2014-09-29 05:43:52 -07:00
|
|
|
|
2014-11-27 07:10:36 -07:00
|
|
|
# Build and output version info.
|
2014-11-28 15:23:12 -07:00
|
|
|
$MAKE_CMD DEPS_CMAKE_FLAGS="$CMAKE_EXTRA_FLAGS" \
|
|
|
|
CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS" nvim
|
2014-11-27 07:10:36 -07:00
|
|
|
build/bin/nvim --version
|
|
|
|
|
2014-12-05 18:41:04 -07:00
|
|
|
# Build library.
|
|
|
|
$MAKE_CMD CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS" libnvim
|
|
|
|
|
2014-11-27 07:10:36 -07:00
|
|
|
# Run unittests.
|
|
|
|
$MAKE_CMD unittest
|
|
|
|
|
|
|
|
# Run functional tests.
|
2014-08-07 05:07:26 -07:00
|
|
|
$MAKE_CMD test
|
2014-11-03 06:52:04 -07:00
|
|
|
check_core_dumps
|
2014-11-27 07:10:36 -07:00
|
|
|
|
|
|
|
# Run legacy tests.
|
2014-10-01 15:30:13 -07:00
|
|
|
$MAKE_CMD oldtest
|
2014-11-03 06:52:04 -07:00
|
|
|
check_core_dumps
|
2014-11-28 15:19:00 -07:00
|
|
|
|
|
|
|
# Test if correctly installed.
|
|
|
|
sudo -E $MAKE_CMD install
|
|
|
|
/usr/local/bin/nvim --version
|
|
|
|
/usr/local/bin/nvim -e -c "quit"
|