Skip to content

Commit

Permalink
Merge 54035ee into a906a90
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnazg committed Jan 10, 2018
2 parents a906a90 + 54035ee commit d9411f9
Show file tree
Hide file tree
Showing 15 changed files with 2,158 additions and 408 deletions.
18 changes: 15 additions & 3 deletions .gitignore
@@ -1,3 +1,15 @@
.idea
build
vendor
# IDE Shizzle; it is recommended to use a global .gitignore for this but since this is an OSS project we want to make
# it easy to contribute
.idea
/nbproject/private/
.buildpath
.project
.settings

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

# By default the phpunit.xml.dist is provided; you can override this using a local config file
phpunit.xml
48 changes: 48 additions & 0 deletions .scrutinizer.yml
@@ -0,0 +1,48 @@
before_commands:
- "composer install --no-dev --prefer-source"

checks:
php:
excluded_dependencies:
- phpstan/phpstan

tools:
external_code_coverage:
enabled: true
timeout: 300
filter:
excluded_paths: ["tests", "vendor"]
php_code_sniffer:
enabled: true
config:
standard: PSR2
filter:
paths: ["src/*", "tests/*"]
excluded_paths: []
php_cpd:
enabled: true
excluded_dirs: ["tests", "vendor"]
php_cs_fixer:
enabled: true
config:
level: all
filter:
paths: ["src/*", "tests/*"]
php_loc:
enabled: true
excluded_dirs: ["tests", "vendor"]
php_mess_detector:
enabled: true
config:
ruleset: phpmd.xml.dist
design_rules: { eval_expression: false }
filter:
paths: ["src/*"]
php_pdepend:
enabled: true
excluded_dirs: ["tests", "vendor"]
php_analyzer:
enabled: true
filter:
paths: ["src/*", "tests/*"]
sensiolabs_security_checker: true
66 changes: 42 additions & 24 deletions .travis.yml
@@ -1,32 +1,50 @@
language: php
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
- hhvm-nightly
- 7.1
- 7.2
- nightly

env:

matrix:
allow_failures:
- php: hhvm
- php: hhvm-nightly

script:
- vendor/bin/phpunit

before_script:
- sudo apt-get -qq update > /dev/null
- sudo apt-get -qq install graphviz > /dev/null
- phpenv rehash > /dev/null
- composer selfupdate --quiet
- composer install --no-interaction --prefer-source --dev
- vendor/bin/phpunit
- composer update --no-interaction --prefer-source --dev
fast_finish: true
allow_failures:
- php: nightly

install:
- sudo apt install graphviz
- composer install --no-interaction --prefer-dist --optimize-autoloader

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

- stage: coverage
php: 7.1
script:
- 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

- stage: lint
php: 7.1
before_script:
- composer create-project symplify/easy-coding-standard temp/ecs
script:
- temp/ecs/bin/ecs check src tests
- vendor/bin/phpstan analyse src --level max --configuration phpstan.neon

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

notifications:
irc: "irc.freenode.org#phpdocumentor"
slack:
secure: "fjumM0h+4w3EYM4dpgqvpiCug7m4sSIC5+HATgwga/Nrc6IjlbWvGOv3JPgD3kQUhi18VmZfUYPmCv916SIbMnv8JWcrSaJXnPCgmxidvYkuzQDIw1HDJbVppGnkmwQA/qjIrM3sIEMfnu/arLRJQLI363aStZzGPxwIa4PDKcg="
email:
- mike.vanriel@naenius.com
- ashnazg@php.net
- me@mikevanriel.com
- ashnazg@php.net
12 changes: 11 additions & 1 deletion README.md
@@ -1,4 +1,14 @@
GraphViz [![Build Status](https://secure.travis-ci.org/phpDocumentor/GraphViz.png)](http://travis-ci.org/phpDocumentor/GraphViz)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Travis Status](https://img.shields.io/travis/phpDocumentor/GraphViz.svg?label=Linux)](https://travis-ci.org/phpDocumentor/GraphViz)
[![Appveyor Status](https://img.shields.io/appveyor/ci/phpDocumentor/GraphViz.svg?label=Windows)](https://ci.appveyor.com/project/phpDocumentor/GraphViz/branch/master)
[![Coveralls Coverage](https://img.shields.io/coveralls/github/phpDocumentor/GraphViz.svg)](https://coveralls.io/github/phpDocumentor/GraphViz?branch=master)
[![Scrutinizer Code Coverage](https://img.shields.io/scrutinizer/coverage/g/phpDocumentor/GraphViz.svg)](https://scrutinizer-ci.com/g/phpDocumentor/GraphViz/?branch=master)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/phpDocumentor/GraphViz.svg)](https://scrutinizer-ci.com/g/phpDocumentor/GraphViz/?branch=master)
[![Stable Version](https://img.shields.io/packagist/v/phpDocumentor/GraphViz.svg)](https://packagist.org/packages/phpDocumentor/GraphViz)
[![Unstable Version](https://img.shields.io/packagist/vpre/phpDocumentor/GraphViz.svg)](https://packagist.org/packages/phpDocumentor/GraphViz)


GraphViz
========

GraphViz is a library meant for generating .dot files for GraphViz with a
Expand Down
56 changes: 56 additions & 0 deletions appveyor.yml
@@ -0,0 +1,56 @@
build: false
clone_folder: c:\graphviz
max_jobs: 3
platform: x86
pull_requests:
do_not_increment_build_number: true
version: '{build}.{branch}'
skip_tags: true
branches:
only:
- master

environment:
matrix:
- PHP_VERSION: '7.1.13'
VC_VERSION: 'VC14'
- PHP_VERSION: '7.2.1'
VC_VERSION: 'VC15'
matrix:
fast_finish: false

cache:
- c:\php -> appveyor.yml
- '%LOCALAPPDATA%\Composer\files'

init:
- SET PATH=c:\php\%PHP_VERSION%;%PATH%

install:
- cinst graphviz
- dot -V
- IF NOT EXIST c:\php mkdir c:\php
- IF NOT EXIST c:\php\%PHP_VERSION% mkdir c:\php\%PHP_VERSION%
- cd c:\php\%PHP_VERSION%
- IF NOT EXIST php-installed.txt appveyor DownloadFile http://windows.php.net/downloads/releases/php-%PHP_VERSION%-Win32-%VC_VERSION%-x86.zip
- IF NOT EXIST php-installed.txt 7z x php-%PHP_VERSION%-Win32-%VC_VERSION%-x86.zip -y >nul
- IF NOT EXIST php-installed.txt del /Q *.zip
- IF NOT EXIST php-installed.txt copy /Y php.ini-development php.ini
- IF NOT EXIST php-installed.txt echo max_execution_time=1200 >> php.ini
- IF NOT EXIST php-installed.txt echo date.timezone="UTC" >> php.ini
- IF NOT EXIST php-installed.txt echo extension_dir=ext >> php.ini
- IF NOT EXIST php-installed.txt echo extension=php_curl.dll >> php.ini
- IF NOT EXIST php-installed.txt echo extension=php_openssl.dll >> php.ini
- IF NOT EXIST php-installed.txt echo extension=php_mbstring.dll >> php.ini
- IF NOT EXIST php-installed.txt echo extension=php_fileinfo.dll >> php.ini
- IF NOT EXIST php-installed.txt echo zend.assertions=1 >> php.ini
- 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 type nul >> php-installed.txt
- cd c:\graphviz
- composer install --no-interaction --prefer-dist --no-progress

test_script:
- cd c:\graphviz
- vendor/bin/phpunit
5 changes: 3 additions & 2 deletions composer.json
Expand Up @@ -6,10 +6,11 @@
{"name": "Mike van Riel", "email": "mike.vanriel@naenius.com"}
],
"require": {
"php": ">=5.3.3"
"php": ">=7.1"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
"phpunit/phpunit": "~6.5",
"phpstan/phpstan": "^0.9.0"
},
"autoload": {
"psr-0": {"phpDocumentor": ["src/", "tests/unit"]}
Expand Down

0 comments on commit d9411f9

Please sign in to comment.