Skip to content

Commit d11d412

Browse files
committed
update CI setup to match other projects
1 parent 358f261 commit d11d412

File tree

6 files changed

+129
-39
lines changed

6 files changed

+129
-39
lines changed

.scrutinizer.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,30 @@ before_commands:
22
- "composer install --no-dev --prefer-source"
33

44
tools:
5-
external_code_coverage: true
5+
external_code_coverage:
6+
enabled: true
7+
timeout: 300
8+
filter:
9+
excluded_paths: ["docs", "tests", "vendor"]
610
php_code_sniffer:
711
enabled: true
812
config:
913
standard: PSR2
1014
filter:
1115
paths: ["src/*", "tests/*"]
16+
excluded_paths: []
1217
php_cpd:
1318
enabled: true
14-
excluded_dirs: ["vendor"]
19+
excluded_dirs: ["docs", "tests", "vendor"]
20+
php_cs_fixer:
21+
enabled: true
22+
config:
23+
level: all
24+
filter:
25+
paths: ["src/*", "tests/*"]
1526
php_loc:
1627
enabled: true
17-
excluded_dirs: ["vendor"]
28+
excluded_dirs: ["docs", "tests", "vendor"]
1829
php_mess_detector:
1930
enabled: true
2031
config:
@@ -24,7 +35,7 @@ tools:
2435
paths: ["src/*"]
2536
php_pdepend:
2637
enabled: true
27-
excluded_dirs: ["tests", "vendor"]
38+
excluded_dirs: ["docs", "tests", "vendor"]
2839
php_analyzer:
2940
enabled: true
3041
filter:

.travis.yml

Lines changed: 37 additions & 19 deletions
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-
- mike.vanriel@naenius.com
31-
- ashnazg@php.net
32-
- boen.robot@gmail.com
49+
- me@mikevanriel.com
50+
- ashnazg@php.net

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
# phpDocumentor/Reflection
1+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
2+
[![Travis Status](https://travis-ci.org/phpDocumentor/Reflection.svg?branch=master)](https://travis-ci.org/phpDocumentor/Reflection)
3+
[![Appveyor Status](https://ci.appveyor.com/api/projects/status/2xpc16hq56n5v1x5/branch/master?svg=true)](https://ci.appveyor.com/project/phpDocumentor/reflection/branch/master)
4+
[![Code Quality](https://scrutinizer-ci.com/g/phpDocumentor/Reflection/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/phpDocumentor/Reflection/?branch=master)
5+
[![Code Coverage](https://scrutinizer-ci.com/g/phpDocumentor/Reflection/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/phpDocumentor/Reflection/?branch=master)
6+
[![Coverage Status](https://coveralls.io/repos/github/phpDocumentor/Reflection/badge.svg?branch=master)](https://coveralls.io/github/phpDocumentor/Reflection?branch=master)
7+
[![PHPStan](https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat)](https://github.com/phpstan/phpstan)
28

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)
9+
10+
11+
phpDocumentor/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

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

phpstan.neon

Whitespace-only changes.

phpunit.xml.dist

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
22

3-
<phpunit
4-
bootstrap="vendor/autoload.php"
5-
colors="true"
6-
verbose="true"
7-
forceCoversAnnotation="true"
3+
<phpunit
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
verbose="true"
7+
forceCoversAnnotation="true"
88
checkForUnintentionallyCoveredCode="false"
99
>
1010
<testsuites>
@@ -22,13 +22,13 @@
2222
</filter>
2323
<logging>
2424
<log type="coverage-html"
25-
title="phpDocumentor Reflection"
26-
target="build/coverage"
27-
charset="UTF-8"
28-
yui="true"
29-
highlight="false"
30-
lowUpperBound="35"
31-
highLowerBound="70" />
25+
title="phpDocumentor Reflection"
26+
target="build/coverage"
27+
charset="UTF-8"
28+
yui="true"
29+
highlight="false"
30+
lowUpperBound="35"
31+
highLowerBound="70" />
3232
<log type="coverage-clover" target="build/logs/clover.xml"/>
3333
<log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false" />
3434
</logging>

0 commit comments

Comments
 (0)