aboutsummaryrefslogtreecommitdiff
path: root/ci/before_script.sh
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-02-07 09:27:51 +0100
committerGitHub <noreply@github.com>2023-02-07 09:27:51 +0100
commitadae075fcffe0b5d1a790c41c083b78db27ba80b (patch)
tree434dc49e3eeb07a510117b52ab6e8696b4405808 /ci/before_script.sh
parent1391385ba9f83d32f3b6fc54587f03a1d34960d9 (diff)
downloadrneovim-adae075fcffe0b5d1a790c41c083b78db27ba80b.tar.gz
rneovim-adae075fcffe0b5d1a790c41c083b78db27ba80b.tar.bz2
rneovim-adae075fcffe0b5d1a790c41c083b78db27ba80b.zip
ci: remove unnecessary variables and functions (#22150)
Diffstat (limited to 'ci/before_script.sh')
-rwxr-xr-xci/before_script.sh30
1 files changed, 21 insertions, 9 deletions
diff --git a/ci/before_script.sh b/ci/before_script.sh
index 066789af36..4a95e5a60f 100755
--- a/ci/before_script.sh
+++ b/ci/before_script.sh
@@ -3,22 +3,34 @@
set -e
set -o pipefail
-CI_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-# shellcheck source-path=SCRIPTDIR
-source "${CI_DIR}/common/build.sh"
-
# Test some of the configuration variables.
if [[ -n "${GCOV}" ]] && [[ ! $(type -P "${GCOV}") ]]; then
echo "\$GCOV: '${GCOV}' is not executable."
exit 1
fi
-if [[ -n "${LLVM_SYMBOLIZER}" ]] && [[ ! $(type -P "${LLVM_SYMBOLIZER}") ]]; then
- echo "\$LLVM_SYMBOLIZER: '${LLVM_SYMBOLIZER}' is not executable."
- exit 1
+
+if test "${FUNCTIONALTEST}" = "functionaltest-lua" ; then
+ DEPS_CMAKE_FLAGS="${DEPS_CMAKE_FLAGS} -DUSE_BUNDLED_LUA=ON"
+fi
+
+mkdir -p "${DEPS_BUILD_DIR}"
+
+# Use cached dependencies if $CACHE_MARKER exists.
+if test -f "${CACHE_MARKER}"; then
+ echo "Using third-party dependencies from cache."
+ cp -a "${CACHE_NVIM_DEPS_DIR}"/. "${DEPS_BUILD_DIR}"
fi
-# Compile dependencies.
-build_deps
+# Even if we're using cached dependencies, run CMake and make to
+# update CMake configuration and update to newer deps versions.
+cd "${DEPS_BUILD_DIR}"
+echo "Configuring with '${DEPS_CMAKE_FLAGS}'."
+# shellcheck disable=SC2086
+cmake -G Ninja ${DEPS_CMAKE_FLAGS} "${CI_BUILD_DIR}/cmake.deps/"
+
+ninja || exit 1
+
+cd "${CI_BUILD_DIR}"
# Install cluacov for Lua coverage.
if [[ "$USE_LUACOV" == 1 ]]; then