diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 356852198d621a77f92f47379a5ca858d347b78e..6ac05c86532969c2a1403d61dd9a72b365bc4321 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,7 +13,6 @@ before_script:
   # install the required packages for the running CI tests
   - |
     apt-get -yqqf install lsb-release zip unzip subversion mysql-client --fix-missing
-    lsb_release -a
 
     if [[ $(lsb_release -a) =~ "stretch" ]]; then
       apt-get -yqqf install default-libmysqlclient-dev --fix-missing
@@ -22,7 +21,7 @@ before_script:
     fi
 
   # PHP extensions
-  - docker-php-ext-install mbstring mysqli
+  - docker-php-ext-install mbstring mysqli intl gd zip bz2
   - docker-php-ext-enable mbstring mysqli intl gd zip bz2
 
   # Install Composer
@@ -33,7 +32,7 @@ before_script:
 
   # PHPUnit
   - |
-    if [[ $(php -v) =~ "^PHP 7\." ]]; then
+    if [[ $(php -v) =~ "PHP 7." ]]; then
       php composer.phar global require "phpunit/phpunit=6.1.*"
     else
       php composer.phar global require "phpunit/phpunit=4.8.*"