mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
Travis: Add flag to force building of dependencies.
This commit is contained in:
parent
2036fd8166
commit
ddaa481236
@ -23,7 +23,7 @@ fi
|
||||
export CC=/usr/local/clang-$clang_version/bin/clang
|
||||
symbolizer=/usr/local/clang-$clang_version/bin/llvm-symbolizer
|
||||
|
||||
setup_prebuilt_deps x64
|
||||
setup_deps x64
|
||||
|
||||
export ASAN_SYMBOLIZER_PATH=$symbolizer
|
||||
export ASAN_OPTIONS="detect_leaks=1:log_path=$tmpdir/asan"
|
||||
|
@ -35,8 +35,12 @@ check_core_dumps() {
|
||||
done
|
||||
}
|
||||
|
||||
setup_prebuilt_deps() {
|
||||
eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) deps-${1}"
|
||||
setup_deps() {
|
||||
if [ "$BUILD_NVIM_DEPS" != "true" ]; then
|
||||
eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) deps-${1}"
|
||||
elif [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
||||
sudo apt-get install libtool
|
||||
fi
|
||||
}
|
||||
|
||||
tmpdir="$(pwd)/tmp"
|
||||
|
@ -1,7 +1,5 @@
|
||||
. "$CI_SCRIPTS/common.sh"
|
||||
|
||||
setup_prebuilt_deps x86
|
||||
|
||||
# Need this to keep apt-get from removing gcc when installing libncurses
|
||||
# below.
|
||||
sudo apt-get install libc6-dev libc6-dev:i386
|
||||
@ -14,16 +12,19 @@ sudo apt-get install gcc-multilib g++-multilib
|
||||
# correctly.
|
||||
sudo apt-get install libncurses5-dev:i386
|
||||
|
||||
setup_deps x86
|
||||
|
||||
CMAKE_EXTRA_FLAGS="-DTRAVIS_CI_BUILD=ON \
|
||||
-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 \
|
||||
-DCMAKE_TOOLCHAIN_FILE=cmake/i386-linux-gnu.toolchain.cmake \
|
||||
-DCMAKE_TOOLCHAIN_FILE=$TRAVIS_BUILD_DIR/cmake/i386-linux-gnu.toolchain.cmake \
|
||||
-DBUSTED_OUTPUT_TYPE=plainTerminal"
|
||||
|
||||
# Build and output version info.
|
||||
$MAKE_CMD CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS" nvim
|
||||
$MAKE_CMD DEPS_CMAKE_FLAGS="$CMAKE_EXTRA_FLAGS" \
|
||||
CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS" nvim
|
||||
build/bin/nvim --version
|
||||
|
||||
# Build library.
|
||||
|
@ -11,7 +11,7 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
setup_prebuilt_deps x64
|
||||
setup_deps x64
|
||||
|
||||
export VALGRIND=1
|
||||
export VALGRIND_LOG="$tmpdir/valgrind-%p.log"
|
||||
|
@ -4,6 +4,8 @@ os:
|
||||
env:
|
||||
global:
|
||||
- CI_SCRIPTS=$TRAVIS_BUILD_DIR/.ci
|
||||
# To build third-party dependencies, set this to 'true'.
|
||||
- BUILD_NVIM_DEPS=false
|
||||
# Travis reports back that it has 32-cores via /proc/cpuinfo, but it's not
|
||||
# what we really have available. According to their documentation, it only has
|
||||
# 1.5 virtual cores.
|
||||
|
Loading…
Reference in New Issue
Block a user