test/config: add markdownlint install option

Signed-off-by: wawryk <maciejx.wawryk@intel.com>
Change-Id: Ia5b3fadad31333bdaaaa996812b852742885603a
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8819
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Monica Kenguva <monica.kenguva@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
wawryk 2021-07-19 13:01:45 +02:00 committed by Tomasz Zawadzki
parent 637d9e6069
commit 554542d9b1
2 changed files with 26 additions and 1 deletions

View File

@ -190,6 +190,28 @@ function install_rocksdb() {
fi
}
function install_markdownlint() {
local mdl_version="v0.11.0"
if [ ! -d /usr/src/markdownlint ]; then
sudo -E git clone --branch "$mdl_version" "${GIT_REPO_MDL}" "/usr/src/markdownlint"
(
cd /usr/src/markdownlint
if hash gem; then
sudo -E dnf install ruby-devel
fi
if hash rake; then
sudo -E gem install rake
fi
if hash bundler; then
sudo -E gem install bundler
fi
sudo -E rake install
)
else
echo "Markdown lint tool already in /usr/src/markdownlint. Not installing"
fi
}
function install_fio() {
# This version of fio is installed in /usr/src/fio to enable
# building the spdk fio plugin.
@ -512,6 +534,7 @@ function install_sources() {
install_qemu
install_igb_uio
install_ice
install_markdownlint
)
install_extra_pkgs
fi
@ -574,6 +597,8 @@ export GIT_REPO_DPDK_KMODS
export IRDMA_DRIVER
: ${ICE_DRIVER="https://sourceforge.net/projects/e1000/files/ice stable/$ICE_VERSION/ice-$ICE_VERSION.tar.gz"}
export ICE_DRIVER
: ${GIT_REPO_MDL="https://github.com/markdownlint/markdownlint.git"}
export GIT_REPO_MDL
GIT_REPOS=${GIT_REPOS:-$HOME}
gcc_version=$(gcc -dumpversion) gcc_version=${gcc_version%%.*}

View File

@ -29,7 +29,7 @@ VM_SETUP_PATH=$(readlink -f ${BASH_SOURCE%/*})
UPGRADE=false
INSTALL=false
CONF="rocksdb,fio,flamegraph,tsocks,qemu,libiscsi,nvmecli,qat,spdk,refspdk,vagrant,igb_uio,ice"
CONF="rocksdb,fio,flamegraph,tsocks,qemu,libiscsi,nvmecli,qat,spdk,refspdk,vagrant,igb_uio,ice,markdownlint"
package_manager=
function pre_install() { :; }