Version 1
[yaffs-website] / vendor / jcalderonzumba / mink-phantomjs-driver / .travis.yml
1 language: php
2
3 php:
4   - 5.4
5   - 5.5
6   - 5.6
7   - 7.0
8   - hhvm
9
10 matrix:
11   fast_finish: true
12   include:
13     - php: 5.4
14       env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable' SYMFONY_DEPRECATIONS_HELPER=weak
15     - php: 5.6
16       env: DEPENDENCIES=dev
17   allow_failures:
18     - php: 7.0
19     - php: hhvm
20
21 env:
22   global:
23     # Force the mink test server to use PHP 5.6 as HHVM does not provide the builtin webserver
24     - MINK_PHP_BIN=~/.phpenv/versions/5.6/bin/php
25     # Force the mink test server to bin on IPv4, as PhantomJS resolves localhost as IPv4 while PHP seems to prefer resolving it as IPv6 on Travis
26     - MINK_HOST=127.0.0.1:8002
27     # Avoid restarting the browser api at the end of tests (see bin/run_tests.sh)
28     - MINK_STOP_BROWSER=1
29
30 cache:
31   directories:
32     - $HOME/.composer/cache/files
33
34 before_install:
35   - composer self-update
36   - if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
37
38 install:
39   - composer update $COMPOSER_FLAGS
40
41 before_script:
42   - mkdir -p /tmp/jcalderonzumba/phantomjs
43
44 script:
45   - bin/run-tests.sh