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.

16 lines
594 B

  1. ---
  2. shellcheck:
  3. extends: .job
  4. stage: unit-tests
  5. tags: [light]
  6. variables:
  7. SHELLCHECK_VERSION: v0.7.1
  8. before_script:
  9. - ./tests/scripts/rebase.sh
  10. - curl --silent --location "https://github.com/koalaman/shellcheck/releases/download/"${SHELLCHECK_VERSION}"/shellcheck-"${SHELLCHECK_VERSION}".linux.x86_64.tar.xz" | tar -xJv
  11. - cp shellcheck-"${SHELLCHECK_VERSION}"/shellcheck /usr/bin/
  12. - shellcheck --version
  13. script:
  14. # Run shellcheck for all *.sh
  15. - find . -name '*.sh' -not -path './.git/*' | xargs shellcheck --severity error
  16. except: ['triggers', 'master']