Skip to content

Commit 208cd45

Browse files
authored
Merge pull request #123 from ashnazg/ci
CI updates
2 parents 6934492 + 8e96cc2 commit 208cd45

9 files changed

+1042
-142
lines changed

.scrutinizer.yml

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,36 @@
11
before_commands:
22
- "composer install --no-dev --prefer-source"
33

4+
checks:
5+
php:
6+
excluded_dependencies:
7+
- phpstan/phpstan
8+
49
tools:
5-
external_code_coverage: true
10+
external_code_coverage:
11+
enabled: true
12+
timeout: 300
13+
filter:
14+
excluded_paths: ["docs", "tests", "vendor"]
615
php_code_sniffer:
716
enabled: true
817
config:
918
standard: PSR2
1019
filter:
1120
paths: ["src/*", "tests/*"]
21+
excluded_paths: []
1222
php_cpd:
1323
enabled: true
14-
excluded_dirs: ["vendor"]
24+
excluded_dirs: ["docs", "tests", "vendor"]
25+
php_cs_fixer:
26+
enabled: true
27+
config:
28+
level: all
29+
filter:
30+
paths: ["src/*", "tests/*"]
1531
php_loc:
1632
enabled: true
17-
excluded_dirs: ["vendor"]
33+
excluded_dirs: ["docs", "tests", "vendor"]
1834
php_mess_detector:
1935
enabled: true
2036
config:
@@ -24,7 +40,7 @@ tools:
2440
paths: ["src/*"]
2541
php_pdepend:
2642
enabled: true
27-
excluded_dirs: ["tests", "vendor"]
43+
excluded_dirs: ["docs", "tests", "vendor"]
2844
php_analyzer:
2945
enabled: true
3046
filter:

.travis.yml

+37-19
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,50 @@
11
language: php
2-
3-
sudo: false
4-
52
php:
6-
- 7.0
73
- 7.1
84
- 7.2
95
- nightly
6+
sudo: false
107

11-
cache:
12-
directories:
13-
- $HOME/.composer/cache
8+
env:
149

15-
script:
16-
- vendor/bin/phpunit
17-
- composer update --no-interaction --prefer-source
18-
- vendor/bin/phpunit -v
10+
matrix:
11+
fast_finish: true
12+
allow_failures:
13+
- php: nightly
1914

20-
before_script:
21-
- composer install --no-interaction
15+
install:
16+
- composer install --no-interaction --prefer-dist --optimize-autoloader
2217

23-
after_script:
24-
- wget https://scrutinizer-ci.com/ocular.phar
25-
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
18+
jobs:
19+
include:
20+
- stage: test
21+
script:
22+
- vendor/bin/phpunit --no-coverage
23+
24+
- stage: coverage
25+
php: 7.1
26+
script:
27+
- vendor/bin/phpunit
28+
after_script:
29+
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
30+
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar && php coveralls.phar --verbose
31+
32+
- stage: lint
33+
php: 7.1
34+
before_script:
35+
- composer create-project symplify/easy-coding-standard temp/ecs
36+
script:
37+
- temp/ecs/bin/ecs check src tests
38+
- vendor/bin/phpstan analyse src --level max --configuration phpstan.neon
39+
40+
cache:
41+
directories:
42+
- $HOME/.composer/cache/files
2643

2744
notifications:
2845
irc: "irc.freenode.org#phpdocumentor"
46+
slack:
47+
secure: "fjumM0h+4w3EYM4dpgqvpiCug7m4sSIC5+HATgwga/Nrc6IjlbWvGOv3JPgD3kQUhi18VmZfUYPmCv916SIbMnv8JWcrSaJXnPCgmxidvYkuzQDIw1HDJbVppGnkmwQA/qjIrM3sIEMfnu/arLRJQLI363aStZzGPxwIa4PDKcg="
2948
email:
30-
31-
32-
49+
50+

README.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
# phpDocumentor/Reflection
2-
3-
[![Build Status]](http://travis-ci.org/phpDocumentor/Reflection)
4-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/phpDocumentor/Reflection/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/phpDocumentor/Reflection/?branch=develop)
5-
[![Code Coverage](https://scrutinizer-ci.com/g/phpDocumentor/Reflection/badges/coverage.png?b=develop)](https://scrutinizer-ci.com/g/phpDocumentor/Reflection/?branch=develop)
1+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
2+
[![Travis Status](https://img.shields.io/travis/phpDocumentor/Reflection.svg?label=Linux)](https://travis-ci.org/phpDocumentor/Reflection)
3+
[![Appveyor Status](https://img.shields.io/appveyor/ci/phpDocumentor/Reflection.svg?label=Windows)](https://ci.appveyor.com/project/phpDocumentor/Reflection/branch/master)
4+
[![Coveralls Coverage](https://img.shields.io/coveralls/github/phpDocumentor/Reflection.svg)](https://coveralls.io/github/phpDocumentor/Reflection?branch=master)
5+
[![Scrutinizer Code Coverage](https://img.shields.io/scrutinizer/coverage/g/phpDocumentor/Reflection.svg)](https://scrutinizer-ci.com/g/phpDocumentor/Reflection/?branch=master)
6+
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/phpDocumentor/Reflection.svg)](https://scrutinizer-ci.com/g/phpDocumentor/Reflection/?branch=master)
7+
[![Stable Version](https://img.shields.io/packagist/v/phpDocumentor/Reflection.svg)](https://packagist.org/packages/phpDocumentor/Reflection)
8+
[![Unstable Version](https://img.shields.io/packagist/vpre/phpDocumentor/Reflection.svg)](https://packagist.org/packages/phpDocumentor/Reflection)
9+
10+
11+
Reflection
12+
==========
613

714
Using this library it is possible to statically reflect one or more files and create an object graph representing
815
your application's structure, including accompanying in-source documentation using DocBlocks.

appveyor.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
build: false
2+
clone_folder: c:\reflection
3+
max_jobs: 3
4+
platform: x86
5+
pull_requests:
6+
do_not_increment_build_number: true
7+
version: '{build}.{branch}'
8+
skip_tags: true
9+
branches:
10+
only:
11+
- develop
12+
- master
13+
14+
environment:
15+
matrix:
16+
- PHP_VERSION: '7.1.13'
17+
VC_VERSION: 'VC14'
18+
- PHP_VERSION: '7.2.1'
19+
VC_VERSION: 'VC15'
20+
matrix:
21+
fast_finish: false
22+
23+
cache:
24+
- c:\php -> appveyor.yml
25+
- '%LOCALAPPDATA%\Composer\files'
26+
27+
init:
28+
- SET PATH=c:\php\%PHP_VERSION%;%PATH%
29+
30+
install:
31+
- IF NOT EXIST c:\php mkdir c:\php
32+
- IF NOT EXIST c:\php\%PHP_VERSION% mkdir c:\php\%PHP_VERSION%
33+
- cd c:\php\%PHP_VERSION%
34+
- IF NOT EXIST php-installed.txt appveyor DownloadFile http://windows.php.net/downloads/releases/php-%PHP_VERSION%-Win32-%VC_VERSION%-x86.zip
35+
- IF NOT EXIST php-installed.txt 7z x php-%PHP_VERSION%-Win32-%VC_VERSION%-x86.zip -y >nul
36+
- IF NOT EXIST php-installed.txt del /Q *.zip
37+
- IF NOT EXIST php-installed.txt copy /Y php.ini-development php.ini
38+
- IF NOT EXIST php-installed.txt echo max_execution_time=1200 >> php.ini
39+
- IF NOT EXIST php-installed.txt echo date.timezone="UTC" >> php.ini
40+
- IF NOT EXIST php-installed.txt echo extension_dir=ext >> php.ini
41+
- IF NOT EXIST php-installed.txt echo extension=php_curl.dll >> php.ini
42+
- IF NOT EXIST php-installed.txt echo extension=php_openssl.dll >> php.ini
43+
- IF NOT EXIST php-installed.txt echo extension=php_mbstring.dll >> php.ini
44+
- IF NOT EXIST php-installed.txt echo extension=php_fileinfo.dll >> php.ini
45+
- IF NOT EXIST php-installed.txt echo zend.assertions=1 >> php.ini
46+
- IF NOT EXIST php-installed.txt echo assert.exception=On >> php.ini
47+
- IF NOT EXIST php-installed.txt appveyor DownloadFile https://getcomposer.org/composer.phar
48+
- IF NOT EXIST php-installed.txt echo @php %%~dp0composer.phar %%* > composer.bat
49+
- IF NOT EXIST php-installed.txt type nul >> php-installed.txt
50+
- cd c:\reflection
51+
- composer install --no-interaction --prefer-dist --no-progress
52+
53+
test_script:
54+
- cd c:\reflection
55+
- vendor/bin/phpunit --no-coverage

composer.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
},
2121
"require": {
22-
"php": "^7.0",
22+
"php": ">=7.1",
2323
"psr/log": "~1.0",
2424
"nikic/php-parser": "^3.0",
2525
"phpdocumentor/reflection-docblock": "^4.1",
@@ -29,7 +29,8 @@
2929
"mockery/mockery": "~1.0",
3030
"mikey179/vfsStream": "~1.2",
3131
"squizlabs/php_codesniffer": "^2.5",
32-
"phpunit/phpunit": "^6.4"
32+
"phpunit/phpunit": "~6.5",
33+
"phpstan/phpstan": "^0.9.0"
3334
},
3435
"extra": {
3536
"branch-alias": {

0 commit comments

Comments
 (0)