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.

15 lines
547 B

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