Unverified Commit d2fe7da8 authored by Jens Segers's avatar Jens Segers Committed by GitHub

Merge pull request #1553 from Smolevich/changes-in-travis-build

Changes in travis build
parents 1d2807b4 d1d06753
......@@ -12,9 +12,8 @@ install:
- docker version
- sudo pip install docker-compose
- docker-compose version
- sed -i -e "s/php:cli/php:${TRAVIS_PHP_VERSION}-cli/g" Dockerfile
- cat Dockerfile
- docker-compose build
- docker-compose build --build-arg PHP_VERSION=${TRAVIS_PHP_VERSION}
script:
- docker-compose up --exit-code-from php
FROM php:cli
ARG PHP_VERSION
FROM php:${PHP_VERSION}-cli
RUN pecl install xdebug
RUN apt-get update && \
apt-get install -y autoconf pkg-config libssl-dev git && \
pecl install mongodb git zlib1g-dev && docker-php-ext-enable mongodb && \
apt-get install -y autoconf pkg-config libssl-dev git zlib1g-dev
RUN pecl install mongodb && docker-php-ext-enable mongodb && \
docker-php-ext-install -j$(nproc) pdo pdo_mysql zip && docker-php-ext-enable xdebug
RUN curl -sS https://getcomposer.org/installer | php \
......
version: '3'
services:
php:
container_name: php
build:
......@@ -10,6 +9,8 @@ services:
volumes:
- .:/code
working_dir: /code
environment:
PHP_VERSION: 7.1
command: bash -c "composer install --prefer-source --no-interaction && php ./vendor/bin/phpunit"
depends_on:
- mysql
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment