Skip to content

Commit 43c3800

Browse files
author
Stanislav Shupilkin
committed
Add build arg in docker-compose.yml
1 parent e51fe15 commit 43c3800

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ install:
1212
- docker version
1313
- sudo pip install docker-compose
1414
- docker-compose version
15-
- sed -i -e "s/php:cli/php:${TRAVIS_PHP_VERSION}-cli/g" Dockerfile
1615
- cat Dockerfile
17-
- docker-compose build
16+
- docker-compose build --build-arg PHP_VERSION="${TRAVIS_PHP_VERSION}"
1817

1918
script:
2019
- docker-compose up --exit-code-from php

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
- .:/code
1111
working_dir: /code
1212
environment:
13-
PHP_VERSION: ${TRAVIS_PHP_VERSION}
13+
PHP_VERSION: ${PHP_VERSION}
1414
command: bash -c "composer install --prefer-source --no-interaction && php ./vendor/bin/phpunit"
1515
depends_on:
1616
- mysql

0 commit comments

Comments
 (0)