forked from minkphp/MinkSelenium2Driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (34 loc) · 1.01 KB
/
.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
37
38
39
40
41
42
43
44
45
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
php: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1, hhvm]
env:
- WEBDRIVER=selenium
matrix:
allow_failures:
- env: 'WEBDRIVER=phantomjs'
- env: WEBDRIVER=phantomjs PHANTOM_VERSION=2
fast_finish: true
include:
- php: 5.5
env: WEBDRIVER=phantomjs
- php: 5.5
env: WEBDRIVER=phantomjs PHANTOM_VERSION=2
- php: 7.0
env: WEBDRIVER=selenium-remote
sudo: required
services:
- docker
before_script:
- sh bin/run-"$WEBDRIVER".sh
- composer install
# Start a webserver for web fixtures. Force using PHP 5.6 to be able to run it on PHP 5.3 and HHVM jobs too
- MINK_PHP_BIN=~/.phpenv/versions/5.6/bin/php vendor/bin/mink-test-server > /dev/null 2>&1 &
script: phpunit -v --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
after_failure:
- cat /tmp/webdriver_output.txt