Skip to content

Commit 6e20ec2

Browse files
authored
Merge pull request #17 from ashnazg/ci
2 parents a906a90 + 28469f0 commit 6e20ec2

15 files changed

+2158
-408
lines changed

.gitignore

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1-
.idea
2-
build
3-
vendor
1+
# IDE Shizzle; it is recommended to use a global .gitignore for this but since this is an OSS project we want to make
2+
# it easy to contribute
3+
.idea
4+
/nbproject/private/
5+
.buildpath
6+
.project
7+
.settings
8+
9+
# Build folder and vendor folder are generated code; no need to version this
10+
build/*
11+
vendor/*
12+
composer.phar
13+
14+
# By default the phpunit.xml.dist is provided; you can override this using a local config file
15+
phpunit.xml

.scrutinizer.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
before_commands:
2+
- "composer install --no-dev --prefer-source"
3+
4+
checks:
5+
php:
6+
excluded_dependencies:
7+
- phpstan/phpstan
8+
9+
tools:
10+
external_code_coverage:
11+
enabled: true
12+
timeout: 300
13+
filter:
14+
excluded_paths: ["tests", "vendor"]
15+
php_code_sniffer:
16+
enabled: true
17+
config:
18+
standard: PSR2
19+
filter:
20+
paths: ["src/*", "tests/*"]
21+
excluded_paths: []
22+
php_cpd:
23+
enabled: true
24+
excluded_dirs: ["tests", "vendor"]
25+
php_cs_fixer:
26+
enabled: true
27+
config:
28+
level: all
29+
filter:
30+
paths: ["src/*", "tests/*"]
31+
php_loc:
32+
enabled: true
33+
excluded_dirs: ["tests", "vendor"]
34+
php_mess_detector:
35+
enabled: true
36+
config:
37+
ruleset: phpmd.xml.dist
38+
design_rules: { eval_expression: false }
39+
filter:
40+
paths: ["src/*"]
41+
php_pdepend:
42+
enabled: true
43+
excluded_dirs: ["tests", "vendor"]
44+
php_analyzer:
45+
enabled: true
46+
filter:
47+
paths: ["src/*", "tests/*"]
48+
sensiolabs_security_checker: true

.travis.yml

Lines changed: 42 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,50 @@
11
language: php
22
php:
3-
- 5.3.3
4-
- 5.3
5-
- 5.4
6-
- 5.5
7-
- 5.6
8-
- hhvm
9-
- hhvm-nightly
3+
- 7.1
4+
- 7.2
5+
- nightly
6+
7+
env:
108

119
matrix:
12-
allow_failures:
13-
- php: hhvm
14-
- php: hhvm-nightly
15-
16-
script:
17-
- vendor/bin/phpunit
18-
19-
before_script:
20-
- sudo apt-get -qq update > /dev/null
21-
- sudo apt-get -qq install graphviz > /dev/null
22-
- phpenv rehash > /dev/null
23-
- composer selfupdate --quiet
24-
- composer install --no-interaction --prefer-source --dev
25-
- vendor/bin/phpunit
26-
- composer update --no-interaction --prefer-source --dev
10+
fast_finish: true
11+
allow_failures:
12+
- php: nightly
13+
14+
install:
15+
- sudo apt install graphviz
16+
- composer install --no-interaction --prefer-dist --optimize-autoloader
17+
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
2743

2844
notifications:
2945
irc: "irc.freenode.org#phpdocumentor"
46+
slack:
47+
secure: "fjumM0h+4w3EYM4dpgqvpiCug7m4sSIC5+HATgwga/Nrc6IjlbWvGOv3JPgD3kQUhi18VmZfUYPmCv916SIbMnv8JWcrSaJXnPCgmxidvYkuzQDIw1HDJbVppGnkmwQA/qjIrM3sIEMfnu/arLRJQLI363aStZzGPxwIa4PDKcg="
3048
email:
31-
- mike.vanriel@naenius.com
32-
49+
- me@mikevanriel.com
50+

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
GraphViz [![Build Status](https://secure.travis-ci.org/phpDocumentor/GraphViz.png)](http://travis-ci.org/phpDocumentor/GraphViz)
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/GraphViz.svg?label=Linux)](https://travis-ci.org/phpDocumentor/GraphViz)
3+
[![Appveyor Status](https://img.shields.io/appveyor/ci/phpDocumentor/GraphViz.svg?label=Windows)](https://ci.appveyor.com/project/phpDocumentor/GraphViz/branch/master)
4+
[![Coveralls Coverage](https://img.shields.io/coveralls/github/phpDocumentor/GraphViz.svg)](https://coveralls.io/github/phpDocumentor/GraphViz?branch=master)
5+
[![Scrutinizer Code Coverage](https://img.shields.io/scrutinizer/coverage/g/phpDocumentor/GraphViz.svg)](https://scrutinizer-ci.com/g/phpDocumentor/GraphViz/?branch=master)
6+
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/phpDocumentor/GraphViz.svg)](https://scrutinizer-ci.com/g/phpDocumentor/GraphViz/?branch=master)
7+
[![Stable Version](https://img.shields.io/packagist/v/phpDocumentor/GraphViz.svg)](https://packagist.org/packages/phpDocumentor/GraphViz)
8+
[![Unstable Version](https://img.shields.io/packagist/vpre/phpDocumentor/GraphViz.svg)](https://packagist.org/packages/phpDocumentor/GraphViz)
9+
10+
11+
GraphViz
212
========
313

414
GraphViz is a library meant for generating .dot files for GraphViz with a

appveyor.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
build: false
2+
clone_folder: c:\graphviz
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+
- cinst graphviz
31+
- dot -V
32+
- IF NOT EXIST c:\php mkdir c:\php
33+
- IF NOT EXIST c:\php\%PHP_VERSION% mkdir c:\php\%PHP_VERSION%
34+
- cd c:\php\%PHP_VERSION%
35+
- IF NOT EXIST php-installed.txt appveyor DownloadFile http://windows.php.net/downloads/releases/php-%PHP_VERSION%-Win32-%VC_VERSION%-x86.zip
36+
- IF NOT EXIST php-installed.txt 7z x php-%PHP_VERSION%-Win32-%VC_VERSION%-x86.zip -y >nul
37+
- IF NOT EXIST php-installed.txt del /Q *.zip
38+
- IF NOT EXIST php-installed.txt copy /Y php.ini-development php.ini
39+
- IF NOT EXIST php-installed.txt echo max_execution_time=1200 >> php.ini
40+
- IF NOT EXIST php-installed.txt echo date.timezone="UTC" >> php.ini
41+
- IF NOT EXIST php-installed.txt echo extension_dir=ext >> php.ini
42+
- IF NOT EXIST php-installed.txt echo extension=php_curl.dll >> php.ini
43+
- IF NOT EXIST php-installed.txt echo extension=php_openssl.dll >> php.ini
44+
- IF NOT EXIST php-installed.txt echo extension=php_mbstring.dll >> php.ini
45+
- IF NOT EXIST php-installed.txt echo extension=php_fileinfo.dll >> php.ini
46+
- IF NOT EXIST php-installed.txt echo zend.assertions=1 >> php.ini
47+
- IF NOT EXIST php-installed.txt echo assert.exception=On >> php.ini
48+
- IF NOT EXIST php-installed.txt appveyor DownloadFile https://getcomposer.org/composer.phar
49+
- IF NOT EXIST php-installed.txt echo @php %%~dp0composer.phar %%* > composer.bat
50+
- IF NOT EXIST php-installed.txt type nul >> php-installed.txt
51+
- cd c:\graphviz
52+
- composer install --no-interaction --prefer-dist --no-progress
53+
54+
test_script:
55+
- cd c:\graphviz
56+
- vendor/bin/phpunit

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
{"name": "Mike van Riel", "email": "[email protected]"}
77
],
88
"require": {
9-
"php": ">=5.3.3"
9+
"php": ">=7.1"
1010
},
1111
"require-dev": {
12-
"phpunit/phpunit": "~4.0"
12+
"phpunit/phpunit": "~6.5",
13+
"phpstan/phpstan": "^0.9.0"
1314
},
1415
"autoload": {
1516
"psr-0": {"phpDocumentor": ["src/", "tests/unit"]}

0 commit comments

Comments
 (0)