This repository has been archived by the owner on Sep 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1345 from derweili/travis-ci
Travis-CI PHP Compatibility Checks added
- Loading branch information
Showing
6 changed files
with
276 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ config.yml | |
.idea/ | ||
*.swp | ||
packaged/ | ||
wpcs/ | ||
wpcs/ | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
language: php | ||
|
||
matrix: | ||
include: | ||
- name: "PHP 5.6 Compatibility Test" | ||
php: "5.6" | ||
env: TEST_VERSION=5.6 | ||
- name: "PHP7.0 Compatibility Test" | ||
php: "7.0" | ||
env: TEST_VERSION=7.0 | ||
- name: "PHP 7.1 Compatibility Test" | ||
php: "7.1" | ||
env: TEST_VERSION=7.1 | ||
- name: "PHP 7.2 Compatibility Test" | ||
php: "7.2" | ||
env: TEST_VERSION=7.2 | ||
- name: "PHP 7.3 Compatibility Test" | ||
php: "7.3" | ||
env: TEST_VERSION=7.3 | ||
allow_failures: | ||
- name: "PHP 5.3 Compatibility Test" | ||
php: "5.3" | ||
env: TEST_VERSION=5.3 | ||
- name: "PHP 5.4 Compatibility Test" | ||
php: "5.4" | ||
env: TEST_VERSION=5.4 | ||
- name: "PHP 5.5 Compatibility Test" | ||
php: "5.5" | ||
env: TEST_VERSION=5.5 | ||
|
||
before_script: | ||
- composer install --dev | ||
script: | ||
- vendor/bin/phpcs -p src/ --standard=PHPCompatibility --runtime-set testVersion $TEST_VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<phpunit | ||
bootstrap="tests/bootstrap.php" | ||
backupGlobals="false" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
> | ||
<testsuites> | ||
<testsuite> | ||
<directory prefix="test-" suffix=".php">./tests/</directory> | ||
<exclude>./tests/test-sample.php</exclude> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |