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

Commit

Permalink
Fix composer deps, add php 5.6 and hhvm to build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
fabios committed Mar 3, 2014
1 parent 323dc2e commit 6fc6ff7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 28 deletions.
31 changes: 15 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm

services:
- riak
- mongodb
- memcached
- redis-server
- riak
- mongodb
- memcached
- redis-server

before_script:
- pecl install riak
- composer self-update
- composer --prefer-source --dev install
- phpenv config-add ./Tests/travis/php.ini
- ./Tests/travis/install-deps.sh
- composer self-update
- composer --prefer-source --dev install

script:
- ./vendor/bin/phpunit -v --coverage-clover ./build/logs/clover.xml
- ./vendor/bin/phpcs -np --extensions=php --ignore=vendor/*,Tests/* --standard=ruleset.xml .
- ./vendor/bin/phpunit -v --coverage-clover ./build/logs/clover.xml
- ./vendor/bin/phpcs -np --extensions=php --ignore=vendor/*,Tests/* --standard=ruleset.xml .

after_script:
- php ./vendor/bin/coveralls -v
- php ./vendor/bin/coveralls -v

matrix:
allow_failures:
Expand Down
11 changes: 11 additions & 0 deletions Tests/travis/install-deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env sh

IS_HHVM=`php -r "var_export(defined('HHVM_VERSION'));"`;

This comment has been minimized.

Copy link
@stof

stof Mar 3, 2014

Member

Could be detected by $TRAVIS_PHP_VERSION as well

BASEDIR=$(dirname $0);

if [ $IS_HHVM ] ; then
exit 0;
fi

pecl install riak
phpenv config-add $BASEDIR/php.ini
15 changes: 3 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"symfony/security": "~2.2",
"symfony/framework-bundle": "~2.2",
"symfony/doctrine-bridge": "~2.2",
"doctrine/cache": "~1.3.0"
"doctrine/inflector": "~1.0",
"doctrine/cache": "~1.3"
},
"require-dev": {
"phpunit/phpunit": "~3.7",
Expand All @@ -57,15 +58,5 @@
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"repositories": [
{
"type": "git",
"url": "https://github.com/instaclick/ObjectCalisthenicsSniffs.git"
},
{
"type": "git",
"url": "https://github.com/instaclick/CodingStandard.git"
}
]
}
}

0 comments on commit 6fc6ff7

Please sign in to comment.