Skip to content

Commit 6e7e18b

Browse files
author
Marc Aschmann
committed
Cleanup for php 5.5 min req, add travis config
1 parent 68054b2 commit 6e7e18b

3 files changed

Lines changed: 42 additions & 1 deletion

File tree

.travis.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
sudo: false
2+
3+
language: php
4+
5+
cache:
6+
directories:
7+
- $HOME/.composer/cache/files
8+
9+
env:
10+
global:
11+
- COMPOSER_OPTIONS="--prefer-stable"
12+
13+
matrix:
14+
fast_finish: true
15+
include:
16+
- php: 5.5
17+
- php: 5.6
18+
env: SYMFONY_VERSION="2.7.x"
19+
- php: 5.6
20+
env: SYMFONY_VERSION="2.8.x"
21+
- php: 5.6
22+
env: SYMFONY_VERSION="3.1.x"
23+
- php: 7.0
24+
env: COMPOSER_OPTIONS=""
25+
- php: hhvm
26+
27+
before_install:
28+
- if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then INI_FILE=/etc/hhvm/php.ini; else INI_FILE=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
29+
- echo memory_limit = -1 >> $INI_FILE
30+
- if [ "$COVERAGE" != "yes" -a "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi
31+
- if [ "$SYMFONY_VERSION" != "" ]; then composer require symfony/symfony:${SYMFONY_VERSION} --dev --no-update; fi
32+
33+
install:
34+
- composer update $COMPOSER_OPTIONS
35+
36+
script:
37+
- vendor/bin/phpunit

bin/phpunit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../vendor/phpunit/phpunit/phpunit

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"asm/php-utilities": "^2.0"
1010
},
1111
"require-dev": {
12-
"phpunit/phpunit": "^5.4",
12+
"phpunit/phpunit": "<5.0",
1313
"mikey179/vfsStream": "~1.0"
1414
},
1515
"license": "MIT",
@@ -19,6 +19,9 @@
1919
"email": "maschmann@gmail.com"
2020
}
2121
],
22+
"config": {
23+
"bin-dir": "bin"
24+
},
2225
"autoload": {
2326
"psr-4": {
2427
"PhpFlo\\PhpFloBundle\\": ""

0 commit comments

Comments
 (0)