Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

add travis-ci builds on latest versions of dependencies #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ composer.phar
.*.sw*
.*.un~
vendor/
clover.xml
43 changes: 43 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
sudo: false

language: php

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

env:
global:
- COMPOSER_ARGS="--no-interaction"
- SITE_URL: https://zendframework.github.io/ZFTool
- GH_REF: github.com/zendframework/ZFTool.git

matrix:
fast_finish: true
include:
- php: 5.3
- php: 5.4
- php: 5.5
- php: 5.6
env:
- EXECUTE_CS_CHECK=true
- TEST_COVERAGE=true
- php: 7
- php: hhvm

before_install:
- travis_retry composer self-update

install:
- 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 --installed

script:
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer cs-check ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; fi
- if [[ $TEST_COVERAGE != 'true' ]]; then composer test ; fi

notifications:
email: true
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Zend Framework 2 Tool
=========================

[![Build Status](https://secure.travis-ci.org/zendframework/ZFTool.svg?branch=master)](https://secure.travis-ci.org/zendframework/ZFTool)

**ZFTool** is an utility module for maintaining modular Zend Framework 2 applications.
It runs from the command line and can be installed as ZF2 module or as PHAR (see below).

Expand Down
47 changes: 29 additions & 18 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,38 @@
"require": {
"php": ">=5.3.3",
"zendframework/zenddiagnostics" : ">=1.0.0",
"zendframework/zend-code": ">=2.2.2",
"zendframework/zend-config": ">=2.2.2",
"zendframework/zend-console": ">=2.2.2",
"zendframework/zend-file": ">=2.2.2",
"zendframework/zend-form": ">=2.2.2",
"zendframework/zend-i18n": ">=2.2.2",
"zendframework/zend-loader": ">=2.2.2",
"zendframework/zend-log": ">=2.2.2",
"zendframework/zend-modulemanager": ">=2.2.2",
"zendframework/zend-mvc": ">=2.2.2",
"zendframework/zend-serializer": ">=2.2.2",
"zendframework/zend-servicemanager": ">=2.2.2",
"zendframework/zend-stdlib": ">=2.2.2",
"zendframework/zend-text": ">=2.2.2",
"zendframework/zend-version": ">=2.2.2 ",
"zendframework/zend-view": ">=2.2.2",
"zendframework/zend-http": ">=2.2.2"
"zendframework/zend-code": "^2.2.2",
"zendframework/zend-config": "^2.2.2",
"zendframework/zend-console": "^2.2.2",
"zendframework/zend-file": "^2.2.2",
"zendframework/zend-form": "^2.2.2",
"zendframework/zend-i18n": "^2.2.2",
"zendframework/zend-loader": "^2.2.2",
"zendframework/zend-log": "^2.2.2",
"zendframework/zend-modulemanager": "^2.2.2",
"zendframework/zend-mvc": "^2.2.2",
"zendframework/zend-serializer": "^2.2.2",
"zendframework/zend-servicemanager": "^2.2.2",
"zendframework/zend-stdlib": "^2.2.2",
"zendframework/zend-text": "^2.2.2",
"zendframework/zend-version": "^2.2.2 ",
"zendframework/zend-view": "^2.2.2",
"zendframework/zend-http": "^2.2.2"
},
"require-dev": {
"fabpot/php-cs-fixer": "1.7.*",
"phpunit/phpunit": "4.*"
"phpunit/phpunit": "^4.8",
"zendframework/zend-mvc": "^2.2"
},
"scripts": {
"check": [
"@cs-check",
"@test"
],
"cs-check": "php-cs-fixer --version && php-cs-fixer fix -v --diff --dry-run",
"cs-fix": "php-cs-fixer fix -v",
"test": "phpunit --configuration tests",
"test-coverage": "phpunit --configuration tests --coverage-text --coverage-clover clover.xml"
},
"bin": ["zf.php"]
}
2 changes: 2 additions & 0 deletions tests/ZFToolTest/Diagnostics/DiagnosticsControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ class DiagnosticsControllerTest extends \PHPUnit_Framework_TestCase

public function setup()
{
\PHPUnit_Framework_Error_Deprecated::$enabled = false;

$this->config = new ArrayObject(array(
'diagnostics' => array()
));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ public function testDataDump()
' )' . PHP_EOL .
' ---------------------------------' . PHP_EOL, ob_get_clean()
);
ob_start();
}

public function testSummaryAllSuccessful()
Expand Down