tests_shellcheck.sh 1.2 KB

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. # Project: Game Server Managers - LinuxGSM
  3. # Author: Daniel Gibbs
  4. # License: MIT License, Copyright (c) 2017 Daniel Gibbs
  5. # Purpose: Travis CI Tests: Shellcheck | Linux Game Server Management Script
  6. # Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
  7. # Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
  8. # Website: https://gameservermanagers.com
  9. echo "================================="
  10. echo "Travis CI Tests"
  11. echo "Linux Game Server Manager"
  12. echo "by Daniel Gibbs"
  13. echo "Contributors: http://goo.gl/qLmitD"
  14. echo "https://linuxgsm.com"
  15. echo "================================="
  16. echo ""
  17. echo "================================="
  18. echo "Bash Analysis Tests"
  19. echo "Using: Shellcheck"
  20. echo "Testing Branch: $TRAVIS_BRANCH"
  21. echo "================================="
  22. echo ""
  23. find . -type f -name "*.sh" -not -path "./shunit2-2.1.6/*" -exec shellcheck --shell=bash --exclude=SC2154,SC2034 {} \;
  24. find . -type f -name "*.cfg" -not -path "./shunit2-2.1.6/*" -exec shellcheck --shell=bash --exclude=SC2154,SC2034 {} \;
  25. echo ""
  26. echo "================================="
  27. echo "Bash Analysis Tests - Complete!"
  28. echo "Using: Shellcheck"
  29. echo "================================="