Skip to content

Commit

Permalink
Support PHP 8.0 and modernize TravisCI configuration (#86)
Browse files Browse the repository at this point in the history
* Modernize TravisCI configuration

* Fix copypasta

* Support PHP 8.0

* Support PHP 8.0 in CI
  • Loading branch information
szepeviktor authored Feb 15, 2021
1 parent 9a69686 commit 566ad70
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
36 changes: 20 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
language: php
# TravisCI configuration for Automattic/phpcs-neutron-standard

matrix:
include:
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4
fast_finish: true
if: "branch = master"

language: "php"
os:
- linux
- "linux"
dist: "xenial"

php:
- "8.0"
- "7.4"
- "7.3"
- "7.2"
- "7.1"
- "7.0"

sudo: false
jobs:
fast_finish: true

cache:
directories:
- $HOME/.composer/cache
- "$HOME/.composer/cache"

script:
- composer validate --strict
- composer install
- composer test
- composer lint
- "composer validate --strict"
- "composer update"
- "composer test"
- "composer lint"

notifications:
email: false
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
}
},
"require": {
"php": "^7.0",
"php": "^7.0 || ^8.0",
"squizlabs/php_codesniffer": "^3.3.0"
},
"require-dev": {
"sirbrillig/phpcs-variable-analysis": "^2.0.1",
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4 || ^0.5 || ^0.6",
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4 || ^0.5 || ^0.6 || ^0.7",
"phpunit/phpunit": "^5.0 || ^6.5 || ^7.0 || ^8.0"
}
}

0 comments on commit 566ad70

Please sign in to comment.