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
515 B

  1. ---
  2. shellcheck:
  3. extends: .job
  4. stage: unit-tests
  5. variables:
  6. SHELLCHECK_VERSION: v0.6.0
  7. before_script:
  8. - curl --silent "https://storage.googleapis.com/shellcheck/shellcheck-"${SHELLCHECK_VERSION}".linux.x86_64.tar.xz" | tar -xJv
  9. - cp shellcheck-"${SHELLCHECK_VERSION}"/shellcheck /usr/bin/
  10. - shellcheck --version
  11. script:
  12. # Run shellcheck for all *.sh except contrib/
  13. - find . -name '*.sh' -not -path './contrib/*' | xargs shellcheck --severity error
  14. except: ['triggers', 'master']