forked from lmc-eu/steward
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (42 loc) · 1.27 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
46
47
48
49
50
51
language: php
php:
- 7.1
- 7.2
matrix:
include:
- php: 7.1
env: dependencies="--prefer-lowest --prefer-stable"
- php: 7.2
env: dependencies="--prefer-lowest --prefer-stable"
- php: 7.2
env: CHECK_CODESTYLE=1
before_install:
- phpenv config-rm xdebug.ini
before_script: ~
script:
- composer codestyle:check
- composer analyze
after_success: ~
install:
- travis_retry composer self-update && composer --version
- travis_retry composer update --no-interaction $dependencies
before_script:
- mkdir -p src-tests/logs/
- mkdir -p src-tests/coverage/
- SELENIUM_JAR=$(bin/steward install --no-interaction --no-ansi 3.8.0)
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- java -Dwebdriver.firefox.marionette=false -jar $SELENIUM_JAR -enablePassThrough false -log selenium-server.log &
- until $(echo | nc localhost 4444); do sleep 1; echo Waiting for selenium-server to start...; done;
script:
- stty cols 120
- cd src-tests && ../vendor/bin/phpunit --coverage-clover ./logs/clover.xml && cd ..
after_script:
- cat selenium-server.log
after_success:
- travis_retry php vendor/bin/php-coveralls -v
cache:
directories:
- $HOME/.composer/cache
addons:
firefox: "45.8.0esr"