Jelajahi Sumber

Merge branch 'develop' into feature/codetidy

Daniel Gibbs 8 tahun lalu
induk
melakukan
ff8f4afe74
2 mengubah file dengan 17 tambahan dan 1 penghapusan
  1. 2 1
      .travis.yml
  2. 15 0
      tests/tests_shellcheck.sh

+ 2 - 1
.travis.yml

@@ -30,8 +30,9 @@ addons:
     - libstdc++6:i386
     - libstdc++6:i386
     - net-tools
     - net-tools
     - iproute2
     - iproute2
+    - shellcheck
 
 
 script:
 script:
-
     - bash tests/tests_jc2server.sh
     - bash tests/tests_jc2server.sh
     - bash tests/tests_ts3server.sh
     - bash tests/tests_ts3server.sh
+    - bash tests/tests_shellcheck.sh

+ 15 - 0
tests/tests_shellcheck.sh

@@ -0,0 +1,15 @@
+#!/bin/bash
+# Project: Game Server Managers - LinuxGSM
+# Author: Daniel Gibbs
+# License: MIT License, Copyright (c) 2017 Daniel Gibbs
+# Purpose: TravisCI Tests: Shellcheck | Linux Game Server Management Script
+# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
+# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
+# Website: https://gameservermanagers.com
+
+echo "START Shellcheck"
+echo "================================="
+find . -type f -name "*.sh" -not -path "./shunit2-2.1.6/*" -exec shellcheck --shell=bash --exclude=SC2154,SC2034 {} \;
+find . -type f -name "*.cfg" -not -path "./shunit2-2.1.6/*" -exec shellcheck --shell=bash --exclude=SC2154,SC2034 {} \;
+echo "================================="
+echo "END Shellcheck"