Skip to content

Commit 07c4845

Browse files
committed
Tweak dockerfile.sh
1 parent 6a4dda8 commit 07c4845

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
- PHP_RUNTIME='php:7.2-cli'
1010
- PHP_RUNTIME='php:7.3-cli' CHECK_CS=1
1111
- PHP_RUNTIME='php:7.4-cli' PHPUNIT_OPTS='--coverage-text --coverage-clover=coverage.clover'
12-
- PHP_RUNTIME='php:8.0-cli'
12+
- PHP_RUNTIME='php:8.0-cli' EXT_DISABLE_DECIMAL=1
1313

1414
jobs:
1515
fast_finish: true

dockerfile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if [[ -z "$PHP_RUNTIME" ]]; then
55
fi
66

77
RUN_CMDS=''
8-
if [[ $PHP_RUNTIME != php:8* ]]; then
8+
if [[ -z "$EXT_DISABLE_DECIMAL" || "0" == "$EXT_DISABLE_DECIMAL" || "false" == "$EXT_DISABLE_DECIMAL" ]] ; then
99
RUN_CMDS="$RUN_CMDS && \\\\\n apt-get install -y libmpdec-dev"
1010
RUN_CMDS="$RUN_CMDS && \\\\\n pecl install decimal && docker-php-ext-enable decimal"
1111
fi

0 commit comments

Comments
 (0)