Skip to content

Commit c46bd33

Browse files
committed
Allow failure for PHP 5.3 in .travis.yml
Added patch that attempts to fix expired CA certificates but its not a recommended solution
1 parent 0751068 commit c46bd33

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ matrix:
5858
- SYMFONY_PHPUNIT_VERSION=9.5
5959
fast_finish: true
6060
allow_failures:
61+
- php: 5.3
6162
- php: nightly
6263

6364
branches:
@@ -69,6 +70,13 @@ cache:
6970
- $HOME/.composer/cache
7071

7172
before_install:
73+
# In September 2021, the Let's encrypt root authority certificate expired,
74+
# which invalidates Composer's certificates.
75+
- if [[ $TRAVIS_DIST == 'precise' ]]; then
76+
wget https://curl.se/ca/cacert.pem -O /tmp/cacert.pem --no-check-certificate;
77+
echo "openssl.cafile=/tmp/cacert.pem" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
78+
fi
79+
# Update Composer to the latest supported version
7280
- composer self-update
7381

7482
install:

0 commit comments

Comments
 (0)