one last try for now
This commit is contained in:
parent
ae5158b676
commit
f0cd084738
@ -1,5 +1,5 @@
|
|||||||
# Select image from https://hub.docker.com/_/php/
|
# Select image from https://hub.docker.com/_/php/
|
||||||
image: php:7
|
image: php:7.1
|
||||||
|
|
||||||
# Select what we should cache
|
# Select what we should cache
|
||||||
cache:
|
cache:
|
||||||
@ -11,13 +11,14 @@ before_script:
|
|||||||
- apt-get update -yqq
|
- apt-get update -yqq
|
||||||
- apt-get install git -yqq
|
- apt-get install git -yqq
|
||||||
|
|
||||||
# Install mysql driver
|
# Install php-gd
|
||||||
- docker-php-ext-install pdo_mysql
|
- apt-get -yqq libfreetype6-dev libjpeg62-turbo-dev libpng-dev
|
||||||
|
|
||||||
# Install php-gd
|
|
||||||
- docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
|
- docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
|
||||||
- docker-php-ext-install -j$(nproc) gd
|
- docker-php-ext-install -j$(nproc) gd
|
||||||
|
|
||||||
|
# Install mysql driver
|
||||||
|
- docker-php-ext-install pdo_mysql
|
||||||
|
|
||||||
# Install composer
|
# Install composer
|
||||||
- curl -sS https://getcomposer.org/installer | php
|
- curl -sS https://getcomposer.org/installer | php
|
||||||
|
|
||||||
@ -32,7 +33,7 @@ variables:
|
|||||||
MYSQL_DATABASE: hello_world_test
|
MYSQL_DATABASE: hello_world_test
|
||||||
MYSQL_ROOT_PASSWORD: mysql
|
MYSQL_ROOT_PASSWORD: mysql
|
||||||
|
|
||||||
# We test PHP5.6 (the default) with MySQL
|
# We test PHP7 (the default) with MySQL
|
||||||
test:mysql:
|
test:mysql:
|
||||||
script:
|
script:
|
||||||
- vendor/bin/phpunit --configuration phpunit_mysql.xml --coverage-text
|
- vendor/bin/phpunit --configuration phpunit_mysql.xml --coverage-text
|
||||||
|
Reference in New Issue
Block a user