forked from php-webdriver/php-webdriver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
42 lines (33 loc) · 1.14 KB
/
.travis.yml
File metadata and controls
42 lines (33 loc) · 1.14 KB
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
language: php
php:
- 5.5
- 5.6
- 7
- 7.1
- hhvm
matrix:
include:
# Add PHP 7 build to check codestyle only in PHP 7 build
- php: 7
env: CHECK_CODESTYLE=1
env:
global:
- DISPLAY=:99.0
cache:
directories:
- $HOME/.composer/cache
before_install:
- travis_retry composer self-update
install:
- travis_retry composer install --no-interaction --prefer-source
before_script:
- if [ -z "$CHECK_CODESTYLE" ]; then sh -e /etc/init.d/xvfb start; fi
- if [ -z "$CHECK_CODESTYLE" ]; then wget -q -t 3 http://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar; fi
- if [ -z "$CHECK_CODESTYLE" ]; then java -jar selenium-server-standalone-2.45.0.jar -log selenium.log; fi &
- if [ -z "$CHECK_CODESTYLE" ]; then until $(echo | nc localhost 4444); do sleep 1; echo waiting for selenium-server...; done; fi
script:
- if [ -n "$CHECK_CODESTYLE" ]; then ./vendor/bin/php-cs-fixer fix --diff --dry-run; fi
- if [ -n "$CHECK_CODESTYLE" ]; then ./vendor/bin/phpcs --standard=PSR2 ./lib/ ./tests/; fi
- if [ -z "$CHECK_CODESTYLE" ]; then ./vendor/bin/phpunit; fi
after_script:
- cat selenium.log