Skip to content

Commit 7d77697

Browse files
committed
Added .travis.yml file.
1 parent 3a9ab1a commit 7d77697

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.travis.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
language: php
2+
sudo: false
3+
4+
php:
5+
- 5.4
6+
- 5.5
7+
- 5.6
8+
- 7.0
9+
- hhvm
10+
11+
cache:
12+
directories:
13+
- $HOME/.composer/cache
14+
15+
matrix:
16+
fast_finish: true
17+
allow_failures:
18+
- php: hhvm
19+
- php: 7.0
20+
21+
before_install:
22+
- composer selfupdate
23+
24+
addons:
25+
apt:
26+
packages:
27+
- parallel
28+
29+
install:
30+
- export COMPOSER_ROOT_VERSION=dev-master
31+
- if [ "$DEPENDENCIES" == "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
32+
- if [ "$DEPENDENCIES" != "low" ]; then composer update; fi;
33+
- if [ "$DEPENDENCIES" == "low" ]; then composer update --prefer-lowest; fi;
34+
35+
before_script:
36+
- echo "<?php if (PHP_VERSION_ID >= 50400) echo ',@php5.4';" > php_version_tags.php
37+
38+
script:
39+
- bin/phpspec run --format=pretty
40+
#- ./vendor/bin/phpunit --testdox
41+
#- ./vendor/bin/behat --format=pretty --tags '~@php-version'`php php_version_tags.php`

0 commit comments

Comments
 (0)