forked from Behatch/contexts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (39 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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
env:
matrix:
- DEPS=hight
- DEPS=low
php:
- 5.5
- 5.6
- 7.0
- 7.1
- nightly
- hhvm
- hhvm-nightly
matrix:
allow_failures:
- php: nightly
- php: hhvm
- php: hhvm-nightly
fast_finish: true
before_script:
- export DISPLAY=:99.0 CHROME_DRIVER_VERSION=2.33 SELENIUM_VERSION=3.6.0
- Xvfb $DISPLAY -extension RANDR &> /dev/null &
- wget "https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip"
- unzip chromedriver_linux64.zip
- wget "https://selenium-release.storage.googleapis.com/${SELENIUM_VERSION%%.[[:digit:]]}/selenium-server-standalone-${SELENIUM_VERSION}.jar" -O selenium.jar
- java -jar -Dwebdriver.chrome.driver=./chromedriver selenium.jar &> /dev/null &
- php -S localhost:8080 -t tests/fixtures/www &> /dev/null &
- cp behat.yml{.dist,}
- composer install
- test "$DEPS" == "hight" || composer update --prefer-lowest
- test "$DEPS" == "hight" || composer update atoum/atoum
script:
- ./bin/atoum
- ./bin/behat -fprogress --tags='~@user' --no-interaction
- ./bin/behat -fprogress --tags='~@user' --no-interaction --profile=symfony2