Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge 89df64c into 66f0d67
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbundyra committed Nov 8, 2016
2 parents 66f0d67 + 89df64c commit 6761be9
Show file tree
Hide file tree
Showing 40 changed files with 1,774 additions and 163 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
@@ -0,0 +1,2 @@
coverage_clover: clover.xml
json_path: coveralls-upload.json
7 changes: 7 additions & 0 deletions .gitattributes
@@ -0,0 +1,7 @@
/test export-ignore
.coveralls.yml
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
phpcs.xml export-ignore
phpunit.xml.dist export-ignore
15 changes: 2 additions & 13 deletions .gitignore
@@ -1,17 +1,6 @@
.buildpath
.DS_Store
.idea
.project
.settings/
.*.sw*
.*.un~
nbproject
tmp/
doc/html/
vendor/
phpunit.xml
doc/html/
zf-mkdoc-theme/

clover.xml
composer.lock
coveralls-upload.json
phpunit.xml
18 changes: 0 additions & 18 deletions .scrutinizer.yml

This file was deleted.

54 changes: 48 additions & 6 deletions .travis.yml
Expand Up @@ -11,6 +11,8 @@ cache:

env:
global:
- COMPOSER_ARGS="--no-interaction"
- COVERAGE_DEPS="satooshi/php-coveralls"
- SITE_URL: https://zendframework.github.io/zend-stratigility
- GH_USER_NAME: "Matthew Weier O'Phinney"
- GH_USER_EMAIL: matthew@weierophinney.net
Expand All @@ -21,26 +23,66 @@ matrix:
include:
- php: 5.6
env:
- EXECUTE_CS_CHECK=true
- DEPS=lowest
- php: 5.6
env:
- DEPS=locked
- TEST_COVERAGE=true
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
- PATH="$HOME/.local/bin:$PATH"
- php: 5.6
env:
- DEPS=latest
- php: 7
env:
- DEPS=lowest
- php: 7
env:
- DEPS=locked
- CS_CHECK=true
- php: 7
- php: hhvm
env:
- DEPS=latest
- php: 7.1
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=locked
- php: 7.1
env:
- DEPS=latest
- php: hhvm
env:
- DEPS=lowest
- php: hhvm
env:
- DEPS=locked
- php: hhvm
env:
- DEPS=latest
allow_failures:
- php: hhvm

before_install:
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- travis_retry composer self-update

install:
- travis_retry composer install
- composer show --installed
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- travis_retry composer install $COMPOSER_ARGS
- composer show

script:
- composer test
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer cs-check ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then wget -O theme-installer.sh "https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh" ; chmod 755 theme-installer.sh ; ./theme-installer.sh ; fi

after_script:
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi

after_success:
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi

Expand Down
3 changes: 2 additions & 1 deletion README.md
@@ -1,6 +1,7 @@
# zend-stratigility

[![Build Status](https://secure.travis-ci.org/zendframework/zend-stratigility.svg?branch=master)](https://secure.travis-ci.org/zendframework/zend-stratigility)
[![Coverage Status](https://coveralls.io/repos/github/zendframework/zend-stratigility/badge.svg)](https://coveralls.io/github/zendframework/zend-stratigility)

> From "Strata", Latin for "layer", and "agility".
Expand All @@ -11,4 +12,4 @@ to PHP. It allows you to create and dispatch middleware pipelines.

- File issues at https://github.com/zendframework/zend-stratigility/issues
- Issue patches to https://github.com/zendframework/zend-stratigility/pulls
- Documentation is at https://zendframework.github.io/zend-stratigility/
- Documentation is at https://docs.zendframework.com/zend-stratigility/
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -28,8 +28,8 @@
},
"require-dev": {
"zendframework/zend-diactoros": "^1.0",
"phpunit/phpunit": "^4.7 || ^5.5",
"squizlabs/php_codesniffer": "^2.6.2"
"phpunit/phpunit": "^5.6",
"squizlabs/php_codesniffer": "^2.7"
},
"suggest": {
"psr/http-message-implementation": "Please install a psr/http-message-implementation to consume Stratigility; e.g., zendframework/zend-diactoros"
Expand Down

0 comments on commit 6761be9

Please sign in to comment.