You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
251 B

#!/usr/bin/env bash
RET=0
CUR_DIR=$(pwd)
YAML_FILES=$(find "${CUR_DIR}" -type f \( -iname '*.yml' -or -iname '*.yaml' \))
for YM_F in ${YAML_FILES[*]}; do
yamllint -c "${CUR_DIR}/.ci/yamllint.yml" "${YM_F}" \
|| RET=${?}
done
exit ${RET}