diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7471be028396e353d5e0c221b36c824799505317..36a4fdf833de9ab68996f7a9d36b87044058e652 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,16 @@
 image: containers.ethitter.com:443/docker/images/debian:jessie-dev
 
+stages:
+  - test_pre_build
+  - build
+  - test
+  - deploy
+
+test_build_script:
+  stage: test_pre_build
+  script:
+    - shellcheck ./scripts/build.sh
+
 build_nginx:
   stage: build
   script:
diff --git a/scripts/build.sh b/scripts/build.sh
index cc5adc932867fce86186746b6315c1818037fe8e..358e13b77ea86d8d45f3ad7ae68dfc3eeec07753 100644
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -2,10 +2,11 @@
 
 date
 
-export OG_DIR=$(pwd)
+OG_DIR=$(pwd)
+export OG_DIR
 
-echo $OG_DIR
+echo "$OG_DIR"
 
-ls -la $OG_DIR
-ls -la $OG_DIR/../.
+ls -la "$OG_DIR"
+ls -la "$OG_DIR/../."
 ls -la ~/