Commit 2e79638b authored by BetaRays's avatar BetaRays Committed by Antoine Le Gonidec

Add a test to use shellcheck on game scripts

parent 1b4bef00
......@@ -11,6 +11,7 @@ shellcheck:
script:
- ./tests/shellcheck-lib.sh
- ./tests/shellcheck-main-script.sh
- ./tests/shellcheck-game-scripts.sh
artifacts:
paths:
- play.it-2/lib/libplayit2.sh
......@@ -150,6 +150,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
printf 'libplayit2.sh not found.\n'
exit 1
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -95,6 +95,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -105,6 +105,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -95,6 +95,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Try to load icons archive
......
......@@ -101,6 +101,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Try to load icons archive
......
......@@ -94,6 +94,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -99,6 +99,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Try to load icons archive
......
......@@ -96,6 +96,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -96,6 +96,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -92,6 +92,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -120,6 +120,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -107,6 +107,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -97,6 +97,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Try to load icons archive
......
......@@ -99,6 +99,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -90,6 +90,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -86,6 +86,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -95,6 +95,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -110,6 +110,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
printf 'libplayit2.sh not found.\n'
exit 1
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -111,6 +111,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
printf 'libplayit2.sh not found.\n'
exit 1
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -100,6 +100,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -140,6 +140,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -88,6 +88,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -91,6 +91,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Try to load icons archive
......
......@@ -95,6 +95,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
printf 'libplayit2.sh not found.\n'
exit 1
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -90,6 +90,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -99,6 +99,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -104,6 +104,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -118,6 +118,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -101,6 +101,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -106,6 +106,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -94,6 +94,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -111,6 +111,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -90,6 +90,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
printf 'libplayit2.sh not found.\n'
exit 1
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -139,6 +139,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
printf 'libplayit2.sh not found.\n'
exit 1
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Use libSSL 1.0.0 32-bit archive (Debian packages only)
......
......@@ -147,6 +147,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
printf 'libplayit2.sh not found.\n'
exit 1
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -107,6 +107,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Use libSSL 1.0.0 32-bit archive
......
......@@ -148,6 +148,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
printf 'libplayit2.sh not found.\n'
exit 1
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -96,6 +96,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -126,6 +126,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
printf 'libplayit2.sh not found.\n'
exit 1
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -102,6 +102,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -89,6 +89,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -96,6 +96,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -98,6 +98,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -106,6 +106,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -94,6 +94,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -101,6 +101,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
printf 'libplayit2.sh not found.\n'
exit 1
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -107,6 +107,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -104,6 +104,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -95,6 +95,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -96,6 +96,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -96,6 +96,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -96,6 +96,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -93,6 +93,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -98,6 +98,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -118,6 +118,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -117,6 +117,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -104,6 +104,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -103,6 +103,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -91,6 +91,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -102,6 +102,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
printf 'libplayit2.sh not found.\n'
exit 1
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -95,6 +95,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -94,6 +94,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"
# Extract game data
......
......@@ -107,6 +107,7 @@ if [ -z "$PLAYIT_LIB2" ]; then
exit 1
fi
fi
#shellcheck source=play.it-2/lib/libplayit2.sh
. "$PLAYIT_LIB2"