Skip to content

Commit

Permalink
Merge 448e861 into 4bd3e3f
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnazg committed Jan 14, 2018
2 parents 4bd3e3f + 448e861 commit e77ba3e
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 2,312 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@

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

# By default the phpunit.xml.dist is provided; you can override this using a local config file
phpunit.xml
17 changes: 11 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,29 @@ install:
jobs:
include:
- stage: test
before_script:
- wget https://phar.phpunit.de/phpunit.phar
script:
- vendor/bin/phpunit --no-coverage
- php phpunit.phar --no-coverage

- stage: coverage
php: 7.1
before_script:
- wget https://phar.phpunit.de/phpunit.phar
script:
- vendor/bin/phpunit
- php phpunit.phar
- composer require phpunit/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
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar && php php-coveralls.phar --verbose

- stage: lint
php: 7.1
before_script:
- composer create-project symplify/easy-coding-standard temp/ecs
- wget https://github.com/phpstan/phpstan/releases/download/0.9.1/phpstan.phar
script:
- temp/ecs/bin/ecs check src tests
- vendor/bin/phpstan analyse src --level max --configuration phpstan.neon
- php phpstan.phar 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:
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 e77ba3e

Please sign in to comment.