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

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