Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
50 additions
and
34 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/phpcs.xml export-ignore |
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 |
---|---|---|
@@ -1,41 +1,54 @@ | ||
sudo: false | ||
dist: xenial | ||
|
||
language: php | ||
|
||
stages: | ||
- name: "Lint" | ||
- name: "PHP Unit tests" | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
- $HOME/.local | ||
- vendor | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- php: 7.1 | ||
env: | ||
- EXECUTE_CS_CHECK=true | ||
- EXECUTE_TEST_COVERALLS=true | ||
- PATH="$HOME/.local/bin:$PATH" | ||
- php: nightly | ||
allow_failures: | ||
- php: nightly | ||
|
||
before_install: | ||
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi | ||
- composer self-update | ||
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls:dev-master ; fi | ||
- $HOME/.composer/cache/ | ||
|
||
install: | ||
- travis_retry composer install --no-interaction | ||
- composer info -i | ||
- composer install --no-interaction | ||
|
||
script: | ||
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi | ||
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then vendor/bin/phpunit ; fi | ||
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then vendor/bin/phpcs ; fi | ||
- ./vendor/bin/phpunit --coverage-clover clover.xml | ||
|
||
after_success: | ||
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.2.0/php-coveralls.phar | ||
- chmod +x php-coveralls.phar | ||
- php php-coveralls.phar --verbose --coverage_clover clover.xml --json_path coveralls-upload.json | ||
|
||
jobs: | ||
allow_failures: | ||
- php: nightly | ||
|
||
after_script: | ||
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then vendor/bin/coveralls ; fi | ||
include: | ||
- stage: "Lint" | ||
name: "Lint files" | ||
before_install: phpenv config-rm xdebug.ini | ||
after_success: skip | ||
script: ./vendor/bin/phpcs | ||
|
||
- stage: "PHP Unit tests" | ||
php: 7.1 | ||
name: "PHP 7.1" | ||
- stage: "PHP Unit tests" | ||
php: 7.2 | ||
name: "PHP 7.2" | ||
- stage: "PHP Unit tests" | ||
php: 7.3 | ||
name: "PHP 7.3" | ||
- stage: "PHP Unit tests" | ||
php: 7.4 | ||
name: "PHP 7.4" | ||
- stage: "PHP Unit tests" | ||
php: nightly | ||
name: "PHP nightly" | ||
install: | ||
- composer install --no-interaction --ignore-platform-reqs | ||
|
||
notifications: | ||
email: true |
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