Commit 43c38004 authored by Stanislav Shupilkin's avatar Stanislav Shupilkin

Add build arg in docker-compose.yml

parent e51fe15a
...@@ -12,9 +12,8 @@ install: ...@@ -12,9 +12,8 @@ install:
- docker version - docker version
- sudo pip install docker-compose - sudo pip install docker-compose
- docker-compose version - docker-compose version
- sed -i -e "s/php:cli/php:${TRAVIS_PHP_VERSION}-cli/g" Dockerfile
- cat Dockerfile - cat Dockerfile
- docker-compose build - docker-compose build --build-arg PHP_VERSION="${TRAVIS_PHP_VERSION}"
script: script:
- docker-compose up --exit-code-from php - docker-compose up --exit-code-from php
...@@ -10,7 +10,7 @@ services: ...@@ -10,7 +10,7 @@ services:
- .:/code - .:/code
working_dir: /code working_dir: /code
environment: environment:
PHP_VERSION: ${TRAVIS_PHP_VERSION} PHP_VERSION: ${PHP_VERSION}
command: bash -c "composer install --prefer-source --no-interaction && php ./vendor/bin/phpunit" command: bash -c "composer install --prefer-source --no-interaction && php ./vendor/bin/phpunit"
depends_on: depends_on:
- mysql - 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