Skip to content

Commit

Permalink
Merge cd45716 into 4bd3e3f
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnazg committed Jan 15, 2018
2 parents 4bd3e3f + cd45716 commit 3fc710e
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 2,323 deletions.
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
.settings

# Build folder and vendor folder are generated code; no need to version this
build/*
vendor/*
composer.phar
build/
temp/
tools/
vendor/
*.phar

# By default the phpunit.xml.dist is provided; you can override this using a local config file
phpunit.xml
32 changes: 17 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
language: php
php:
- 7.1
- 7.2
- nightly
php: [ 7.1, 7.2, nightly ]
sudo: false

env:
Expand All @@ -13,33 +10,38 @@ matrix:
- php: nightly

install:
- composer install --no-interaction --prefer-dist --optimize-autoloader
- travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader
- travis_retry wget https://phar.io/releases/phive.phar
- travis_retry php phive.phar --no-progress install --trust-gpg-keys 4AA394086372C20A phpunit

script:
- ./tools/phpunit --no-coverage

jobs:
include:
- stage: test
script:
- vendor/bin/phpunit --no-coverage

- stage: coverage
php: 7.1
before_script:
- echo "code coverage won't work from phpunit.phar, because this package is itself in that phar..."
- travis_retry composer require --dev phpunit/phpunit
script:
- vendor/bin/phpunit
- ./vendor/bin/phpunit
after_script:
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar && php coveralls.phar --verbose
- travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
- travis_retry wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

- stage: lint
php: 7.1
before_script:
- composer create-project symplify/easy-coding-standard temp/ecs
- travis_retry php phive.phar --no-progress install --trust-gpg-keys 8E730BA25823D8B5 phpstan
script:
- temp/ecs/bin/ecs check src tests
- vendor/bin/phpstan analyse src --level max --configuration phpstan.neon
- ./tools/phpstan analyse src --level max --configuration phpstan.neon
- composer create-project symplify/easy-coding-standard temp/ecs && temp/ecs/bin/ecs check src tests

cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.phive

notifications:
irc: "irc.freenode.org#phpdocumentor"
Expand Down
4 changes: 3 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ install:
- IF NOT EXIST php-installed.txt echo assert.exception=On >> php.ini
- IF NOT EXIST php-installed.txt appveyor DownloadFile https://getcomposer.org/composer.phar
- IF NOT EXIST php-installed.txt echo @php %%~dp0composer.phar %%* > composer.bat
- IF NOT EXIST php-installed.txt appveyor DownloadFile https://phar.phpunit.de/phpunit.phar
- IF NOT EXIST php-installed.txt echo @php %%~dp0phpunit.phar %%* > phpunit.bat
- IF NOT EXIST php-installed.txt type nul >> php-installed.txt
- cd c:\reflectioncommon
- composer install --no-interaction --prefer-dist --no-progress

test_script:
- cd c:\reflectioncommon
- vendor/bin/phpunit --no-coverage
- phpunit --no-coverage
4 changes: 0 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
"phpDocumentor\\Reflection\\": ["src"]
}
},
"require-dev": {
"phpunit/phpunit": "^6.5",
"phpstan/phpstan": "^0.9.0"
},
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
Expand Down

0 comments on commit 3fc710e

Please sign in to comment.