Commit 67e204a1 authored by Ciarán Ó Rourke's avatar Ciarán Ó Rourke
Browse files

NodeJS

Include NodeJS for vim-coc to function.

Change log:
* script for building nodejs
* build nodejs for vim when --build-dependencies is set
* use gcc8 during CI
* disable optional parts of nodejs
parent 748741dd
Pipeline #3231 failed with stage
in 25 minutes and 20 seconds
......@@ -35,8 +35,11 @@ image: centos:7
before_script:
- yum update -y
- yum install -y epel-release
- yum install -y centos-release-scl
- yum update -y
- yum groupinstall -y "Development Tools"
- yum install -y devtoolset-8-gcc devtoolset-8-gcc-c++
- scl enable devtoolset-8 -- bash
- *install_dependencies
script:
- *build_install
......
......@@ -9,6 +9,7 @@ VIM_FLAGS="--with-python3-config-dir=${python3_config_dir}"
if [ "$build_dependencies" == true ]; then
echo "Installing dependencies..."
source "${script_dir}/vim/build_python.sh"
source "${script_dir}/vim/build_node.sh"
ln -s "${install_prefix}/bin/python3" "${install_prefix}/bin/python"
VIM_FLAGS="--with-python3-command=${install_prefix}/bin/python"
export PATH="${install_prefix}/bin:${PATH}:${install_prefix}/bin"
......
set -o errexit
node_src_dir="${external_dir}/node"
node_build_dir="${build_prefix}/node"
node_install_dir="${install_prefix}"
mkdir -p "${node_build_dir}"
pushd "${node_build_dir}"
[[ ! -f src ]] || rm -rf src
mkdir -p src
cp -r "${node_src_dir}"/* src
pushd src
./configure \
--prefix="${node_install_dir}" \
--without-node-snapshot \
--without-node-code-cache \
--without-dtrace \
--without-etw \
--without-npm \
--without-ssl \
--without-node-options \
--without-inspector \
--without-intl \
${CONFIGURE_FLAGS[@]}
make ${MAKE_FLAGS[@]}
make install
popd # src
popd # node_build_dir
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment