forked from Behat/Behat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (29 loc) · 899 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: php
php: [5.3, 5.4, 5.5, 5.6, 5.3.3, hhvm]
sudo: false
cache:
directories:
- $HOME/.composer/cache
branches:
except:
- /^bugfix\/.*$/
- /^feature\/.*$/
- /^optimization\/.*$/
matrix:
include:
- php: 5.5
env: SYMFONY_VERSION='2.3.*'
- php: 5.5
env: SYMFONY_VERSION='2.5.*'
- php: 5.3.3
env: DEPENDENCIES='low'
before_script:
- composer selfupdate
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony=$SYMFONY_VERSION; fi;
- if [ "$DEPENDENCIES" != "low" ]; then composer update; fi;
- if [ "$DEPENDENCIES" = "low" ]; then composer update --prefer-lowest; fi;
- export PATH=./bin:$PATH
- echo "<?php echo '@php5' . implode(',@php5.', range(3, PHP_MINOR_VERSION));" > php_version_tags.php
script:
- phpunit
- behat -fprogress --strict --tags '~@php-version,'`php php_version_tags.php`