aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-02-06 23:14:41 +0100
committerGitHub <noreply@github.com>2023-02-06 23:14:41 +0100
commitaa04efcf574ac9b8b6868a6c6793b3ec937ce263 (patch)
tree06191adba9e5823bd925a61d1cc4b1bfa66abbc6
parente1f03c481a1cf87cead2c5af66b36dbdfbb9a983 (diff)
downloadrneovim-aa04efcf574ac9b8b6868a6c6793b3ec937ce263.tar.gz
rneovim-aa04efcf574ac9b8b6868a6c6793b3ec937ce263.tar.bz2
rneovim-aa04efcf574ac9b8b6868a6c6793b3ec937ce263.zip
ci: remove unhelpful helper functions for make (#22148)
-rw-r--r--ci/common/build.sh21
-rw-r--r--ci/common/test.sh6
2 files changed, 6 insertions, 21 deletions
diff --git a/ci/common/build.sh b/ci/common/build.sh
index 95972aab13..8b91af69b3 100644
--- a/ci/common/build.sh
+++ b/ci/common/build.sh
@@ -6,15 +6,6 @@ _stat() {
fi
}
-top_make() {
- printf '%78s\n' ' ' | tr ' ' '='
- ninja "$@"
-}
-
-build_make() {
- top_make -C "${BUILD_DIR}" "$@"
-}
-
build_deps() {
if test "${FUNCTIONALTEST}" = "functionaltest-lua" ; then
DEPS_CMAKE_FLAGS="${DEPS_CMAKE_FLAGS} -DUSE_BUNDLED_LUA=ON"
@@ -35,9 +26,7 @@ build_deps() {
# shellcheck disable=SC2086
CC= cmake -G Ninja ${DEPS_CMAKE_FLAGS} "${CI_BUILD_DIR}/cmake.deps/"
- if ! top_make; then
- exit 1
- fi
+ ninja || exit 1
cd "${CI_BUILD_DIR}"
}
@@ -56,15 +45,11 @@ build_nvim() {
cmake -G Ninja ${CMAKE_FLAGS} "$@" "${CI_BUILD_DIR}"
echo "Building nvim."
- if ! top_make nvim ; then
- exit 1
- fi
+ ninja nvim || exit 1
if test "$CLANG_SANITIZER" != "TSAN" ; then
echo "Building libnvim."
- if ! top_make libnvim ; then
- exit 1
- fi
+ ninja libnvim || exit 1
fi
# Invoke nvim to trigger *San early.
diff --git a/ci/common/test.sh b/ci/common/test.sh
index 326ec162c3..03d85067be 100644
--- a/ci/common/test.sh
+++ b/ci/common/test.sh
@@ -90,7 +90,7 @@ check_sanitizer() {
unittests() {(
ulimit -c unlimited || true
- if ! build_make unittest ; then
+ if ! ninja -C "${BUILD_DIR}" unittest; then
fail 'unittests' 'Unit tests failed'
fi
submit_coverage unittest
@@ -99,7 +99,7 @@ unittests() {(
functionaltests() {(
ulimit -c unlimited || true
- if ! build_make "${FUNCTIONALTEST}"; then
+ if ! ninja -C "${BUILD_DIR}" "${FUNCTIONALTEST}"; then
fail 'functionaltests' 'Functional tests failed'
fi
submit_coverage functionaltest
@@ -140,7 +140,7 @@ check_runtime_files() {(
)}
install_nvim() {(
- if ! build_make install ; then
+ if ! ninja -C "${BUILD_DIR}" install; then
fail 'install' 'make install failed'
exit 1
fi