mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 11:55:34 +00:00
ci/travis: use ninja instead of make
This commit is contained in:
@@ -6,9 +6,6 @@ env:
|
|||||||
global:
|
global:
|
||||||
# To force rebuilding of third-party dependencies, set this to 'true'.
|
# To force rebuilding of third-party dependencies, set this to 'true'.
|
||||||
- BUILD_NVIM_DEPS=false
|
- BUILD_NVIM_DEPS=false
|
||||||
# Travis has 1.5 virtual cores according to
|
|
||||||
# http://docs.travis-ci.com/user/speeding-up-the-build/#Paralellizing-your-build-on-one-VM
|
|
||||||
- MAKE_CMD="make -j2"
|
|
||||||
# Update PATH for pip.
|
# Update PATH for pip.
|
||||||
- PATH="$(python2.7 -c 'import site; print(site.getuserbase())')/bin:$PATH"
|
- PATH="$(python2.7 -c 'import site; print(site.getuserbase())')/bin:$PATH"
|
||||||
# Build directory for Neovim.
|
# Build directory for Neovim.
|
||||||
@@ -115,6 +112,7 @@ addons:
|
|||||||
- libc6-dev-i386
|
- libc6-dev-i386
|
||||||
- libtool
|
- libtool
|
||||||
- locales
|
- locales
|
||||||
|
- ninja-build
|
||||||
- pkg-config
|
- pkg-config
|
||||||
- unzip
|
- unzip
|
||||||
- valgrind
|
- valgrind
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -8,8 +8,6 @@ CMAKE_PRG ?= $(shell (command -v cmake3 || echo cmake))
|
|||||||
CMAKE_BUILD_TYPE ?= Debug
|
CMAKE_BUILD_TYPE ?= Debug
|
||||||
|
|
||||||
CMAKE_FLAGS := -DCMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE)
|
CMAKE_FLAGS := -DCMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE)
|
||||||
DOC_DOWNLOAD_URL_BASE := https://raw.githubusercontent.com/neovim/doc/gh-pages
|
|
||||||
CLINT_ERRORS_FILE_PATH := /reports/clint/errors.json
|
|
||||||
|
|
||||||
BUILD_TYPE ?= $(shell (type ninja > /dev/null 2>&1 && echo "Ninja") || \
|
BUILD_TYPE ?= $(shell (type ninja > /dev/null 2>&1 && echo "Ninja") || \
|
||||||
echo "Unix Makefiles")
|
echo "Unix Makefiles")
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
top_make() {
|
top_make() {
|
||||||
${MAKE_CMD} "$@"
|
echo '================================================================================'
|
||||||
|
# Travis has 1.5 virtual cores according to:
|
||||||
|
# http://docs.travis-ci.com/user/speeding-up-the-build/#Paralellizing-your-build-on-one-VM
|
||||||
|
ninja "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
build_make() {
|
build_make() {
|
||||||
@@ -36,7 +39,7 @@ build_deps() {
|
|||||||
# update CMake configuration and update to newer deps versions.
|
# update CMake configuration and update to newer deps versions.
|
||||||
cd "${DEPS_BUILD_DIR}"
|
cd "${DEPS_BUILD_DIR}"
|
||||||
echo "Configuring with '${DEPS_CMAKE_FLAGS}'."
|
echo "Configuring with '${DEPS_CMAKE_FLAGS}'."
|
||||||
CC= cmake ${DEPS_CMAKE_FLAGS} "${TRAVIS_BUILD_DIR}/third-party/"
|
CC= cmake -G Ninja ${DEPS_CMAKE_FLAGS} "${TRAVIS_BUILD_DIR}/third-party/"
|
||||||
|
|
||||||
if ! top_make; then
|
if ! top_make; then
|
||||||
exit 1
|
exit 1
|
||||||
@@ -56,7 +59,7 @@ prepare_build() {
|
|||||||
mkdir -p "${BUILD_DIR}"
|
mkdir -p "${BUILD_DIR}"
|
||||||
cd "${BUILD_DIR}"
|
cd "${BUILD_DIR}"
|
||||||
echo "Configuring with '${CMAKE_FLAGS} $@'."
|
echo "Configuring with '${CMAKE_FLAGS} $@'."
|
||||||
cmake ${CMAKE_FLAGS} "$@" "${TRAVIS_BUILD_DIR}"
|
cmake -G Ninja ${CMAKE_FLAGS} "$@" "${TRAVIS_BUILD_DIR}"
|
||||||
}
|
}
|
||||||
|
|
||||||
build_nvim() {
|
build_nvim() {
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ if [[ "${CI_TARGET}" == lint ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
|
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
|
||||||
|
brew install ninja
|
||||||
brew install gettext
|
brew install gettext
|
||||||
brew reinstall -s libtool
|
brew reinstall -s libtool
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -10,19 +10,19 @@ source "${CI_DIR}/common/suite.sh"
|
|||||||
|
|
||||||
enter_suite 'clint'
|
enter_suite 'clint'
|
||||||
|
|
||||||
run_test 'top_make clint-full' clint
|
run_test 'make clint-full' clint
|
||||||
|
|
||||||
exit_suite --continue
|
exit_suite --continue
|
||||||
|
|
||||||
enter_suite 'testlint'
|
enter_suite 'testlint'
|
||||||
|
|
||||||
run_test 'top_make testlint' testlint
|
run_test 'make testlint' testlint
|
||||||
|
|
||||||
exit_suite --continue
|
exit_suite --continue
|
||||||
|
|
||||||
enter_suite 'lualint'
|
enter_suite 'lualint'
|
||||||
|
|
||||||
run_test 'top_make lualint' lualint
|
run_test 'make lualint' lualint
|
||||||
|
|
||||||
exit_suite --continue
|
exit_suite --continue
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ enter_suite single-includes
|
|||||||
CLICOLOR_FORCE=1 run_test_wd \
|
CLICOLOR_FORCE=1 run_test_wd \
|
||||||
--allow-hang \
|
--allow-hang \
|
||||||
10s \
|
10s \
|
||||||
'top_make check-single-includes' \
|
'make check-single-includes' \
|
||||||
'csi_clean' \
|
'csi_clean' \
|
||||||
single-includes
|
single-includes
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user