Browse Source

Testing shellcheck in travis

Daniel Gibbs 8 years ago
parent
commit
5111f4eb75
2 changed files with 18 additions and 2 deletions
  1. 3 2
      .travis.yml
  2. 15 0
      tests/tests_shellcheck.sh

+ 3 - 2
.travis.yml

@@ -33,5 +33,6 @@ addons:
 
 
 script:
 script:
 
 
-    - bash tests/tests_jc2server.sh
-    - bash tests/tests_ts3server.sh
+    #- bash tests/tests_jc2server.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: Teamspeak 3 | Linux Game Server Management Script
+# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
+# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
+# Website: https://gameservermanagers.com
+
+githubuser="GameServerManagers"
+githubrepo="LinuxGSM"
+githubbranch="$TRAVIS_BRANCH"
+
+git clone
+shellcheck --shell=bash --exclude=SC2154,SC2034 GameServerManagers/LinuxGSM/lgsm/functions/*