Skip to content

Commit

Permalink
Tentative support for PHP 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed May 2, 2020
1 parent df4c4d0 commit 67d472b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 22 deletions.
57 changes: 39 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,46 @@
language: php
dist: trusty
sudo: false

php:
- 5.4
- 5.5
- 5.5.9
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- hhvm-3.18
- hhvm-3.30

matrix:
jobs:
include:
- php: 5.3
- name: HHVM 3.18
php: hhvm-3.18
dist: trusty
- name: HHVM 3.30
php: hhvm-3.30
dist: trusty
- name: PHP 5.3
php: 5.3
dist: precise
- name: PHP 5.4
php: 5.4
dist: trusty
- name: PHP 5.5
php: 5.5
dist: trusty
- name: PHP 5.6
php: 5.6
dist: xenial
- name: PHP 7.0
php: 7.0
dist: xenial
- name: PHP 7.1
php: 7.1
dist: bionic
- name: PHP 7.2
php: 7.2
dist: bionic
- name: PHP 7.3
php: 7.3
dist: bionic
- name: PHP 7.4
php: 7.4
dist: bionic
- name: PHP 8.0
php: nightly
dist: bionic

install: travis_retry composer install --no-interaction --prefer-source
install:
- if [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then travis_retry composer update --no-interaction; fi
- if [ "$TRAVIS_PHP_VERSION" == "nightly" ]; then travis_retry composer update --no-interaction --ignore-platform-reqs; fi

script: vendor/bin/phpunit
17 changes: 13 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@
"name": "vlucas/phpdotenv",
"description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.",
"keywords": ["env", "dotenv", "environment"],
"license" : "BSD-3-Clause",
"authors" : [
"license": "BSD-3-Clause",
"authors": [
{
"name": "Graham Campbell",
"email": "[email protected]",
"homepage": "https://gjcampbell.co.uk/"
},
{
"name": "Vance Lucas",
"email": "[email protected]",
"homepage": "http://www.vancelucas.com"
"homepage": "https://vancelucas.com/"
}
],
"require": {
"php": ">=5.3.9",
"php": "^5.3.9 || ^7.0 || ^8.0",
"symfony/polyfill-ctype": "^1.9"
},
"require-dev": {
Expand All @@ -28,6 +33,10 @@
"ext-filter": "Required to use the boolean validator.",
"ext-pcre": "Required to use most of the library."
},
"config": {
"preferred-install": "dist",
"platform-check": false
},
"extra": {
"branch-alias": {
"dev-master": "2.6-dev"
Expand Down

0 comments on commit 67d472b

Please sign in to comment.