Skip to content

Commit

Permalink
try installing latest PHP version to avoid segfaults while running te…
Browse files Browse the repository at this point in the history
…sts with PHP 8
  • Loading branch information
craue committed Aug 16, 2021
1 parent 6d10954 commit 2fe3869
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
php: 7.3
env: DEPS='lowest' WITH_DOCTRINE_CACHE_BUNDLE='yes' SYMFONY_DEPRECATIONS_HELPER='max[self]=2&max[direct]=168&max[indirect]=871'
-
php: 8.0
php: 8.0 # 8.0.2
# php: nightly # 8.0.3-dev
dist: focal
env: DEPS='unmodified' WITH_STATIC_ANALYSIS='yes'

Expand All @@ -35,6 +36,18 @@ jobs:
- env: SYMFONY_VERSION='5.4.*' MIN_STABILITY='dev'
fast_finish: true

before_install:
# install a custom PHP version
- echo ${TRAVIS_PHP_VERSION}
- |
if [ "${TRAVIS_DIST}" = "focal" ]; then
sudo apt update
sudo apt install ca-certificates apt-transport-https software-properties-common
sudo add-apt-repository -y ppa:ondrej/php
sudo apt install -y php8.0 libapache2-mod-php8.0
php -v
fi
install:
# set unlimited memory_limit
- INI_FILE=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
Expand Down

0 comments on commit 2fe3869

Please sign in to comment.