2018-09-14 18:17:54 +00:00
|
|
|
image: php:7.1-alpine
|
|
|
|
|
|
|
|
services:
|
|
|
|
- mysql:latest
|
|
|
|
|
|
|
|
variables:
|
|
|
|
MYSQL_DATABASE: destructr_test
|
|
|
|
MYSQL_ROOT_PASSWORD: badpassword
|
2018-08-17 18:29:03 +00:00
|
|
|
|
|
|
|
before_script:
|
2018-08-22 01:48:40 +00:00
|
|
|
- apk update
|
2018-08-22 01:58:24 +00:00
|
|
|
- apk add git
|
2018-08-22 02:06:32 +00:00
|
|
|
- docker-php-ext-install pdo
|
2018-08-22 01:48:40 +00:00
|
|
|
- curl -sS https://getcomposer.org/installer | php
|
|
|
|
- php composer.phar install
|
2018-08-17 18:29:03 +00:00
|
|
|
|
2018-08-22 02:06:32 +00:00
|
|
|
test:local:
|
2018-08-17 18:29:03 +00:00
|
|
|
script:
|
2018-08-22 02:06:32 +00:00
|
|
|
- php composer.phar test-local
|
|
|
|
|
2018-09-14 18:19:55 +00:00
|
|
|
test:mysql:
|
2018-09-14 18:17:54 +00:00
|
|
|
script:
|
|
|
|
- docker-php-ext-install pdo_mysql
|
|
|
|
- php composer.phar test-mysql
|
2018-08-22 02:06:32 +00:00
|
|
|
|
2018-09-14 18:04:28 +00:00
|
|
|
test:sqlite:
|
2018-08-22 02:06:32 +00:00
|
|
|
script:
|
2018-09-14 18:04:28 +00:00
|
|
|
- php composer.phar test-sqlite
|