diff options
-rw-r--r-- | .gitlab-ci.yml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2123a43f5..724e825ee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ # Select image from https://hub.docker.com/_/php/ -image: php:7 +image: php:7.1 # Select what we should cache cache: @@ -11,13 +11,14 @@ before_script: - apt-get update -yqq - apt-get install git -yqq -# Install mysql driver -- docker-php-ext-install pdo_mysql - -# Install php-gd +# Install php-gd +- apt-get -yqq libfreetype6-dev libjpeg62-turbo-dev libpng-dev - docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ - docker-php-ext-install -j$(nproc) gd +# Install mysql driver +- docker-php-ext-install pdo_mysql + # Install composer - curl -sS https://getcomposer.org/installer | php @@ -32,7 +33,7 @@ variables: MYSQL_DATABASE: hello_world_test MYSQL_ROOT_PASSWORD: mysql -# We test PHP5.6 (the default) with MySQL +# We test PHP7 (the default) with MySQL test:mysql: script: - vendor/bin/phpunit --configuration phpunit_mysql.xml --coverage-text |