diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8caf39b091603539cf0bf141155c5af778a85f5a..6f913c3e216ffa01e57fbd7ba79898f5e7c8a0b7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,17 +1,35 @@
 image: alpine:latest
 
-pages:
-  stage: deploy
-  script:
-  - mkdir public
-  - mv js public/js
-  - mv css public/css
-  - mv panels public/panels
-  - mv config public/config
-  - mv index.html public/index.html
-  - mv favicon.png public/favicon.png 
-  artifacts:
+sonarqube-check:
+  image:
+    name: sonarsource/sonar-scanner-cli:latest
+    entrypoint: [""]
+  variables:
+    SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar"  # Defines the location of the analysis task cache
+    GIT_DEPTH: "0"  # Tells git to fetch all the branches of the project, required by the analysis task
+  cache:
+    key: "${CI_JOB_NAME}"
     paths:
-    - public/
-  only:
-  - master
+      - .sonar/cache
+  script:
+    - sonar-scanner
+  allow_failure: true
+  rules:
+    - if: $CI_COMMIT_BRANCH == 'master'
+
+
+#pages:
+#  stage: deploy
+#  script:
+#  - mkdir public
+#  - mv js public/js
+#  - mv css public/css
+#  - mv panels public/panels
+#  - mv config public/config
+#  - mv index.html public/index.html
+#  - mv favicon.png public/favicon.png
+#  artifacts:
+#    paths:
+#    - public/
+#  only:
+#  - master
diff --git a/sonar-project.properties b/sonar-project.properties
new file mode 100644
index 0000000000000000000000000000000000000000..7b01ac3a5a93520aba85e5e4a85af69689dc4c41
--- /dev/null
+++ b/sonar-project.properties
@@ -0,0 +1,2 @@
+sonar.projectKey=Fachschaft-Informatik-Infoscreen
+sonar.qualitygate.wait=true