This repository has been archived by the owner on Apr 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 203
/
.travis.yml
64 lines (52 loc) · 1.78 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
52
53
54
55
56
57
58
59
60
61
62
63
64
language: php
dist: trusty
addons:
chrome: stable
cache:
directories:
- $HOME/.composer/cache
env:
global:
- DISPLAY=:99.0
- SELENIUM_VERSION=3.9.1
matrix:
- DEPS=high PROFILE=default
- DEPS=low PROFILE=default
- DEPS=high PROFILE=symfony2
- DEPS=low PROFILE=symfony2
php:
- 5.5
- 5.6
- 7.2
- 7.3
- 7.4
- nightly
matrix:
exclude:
- php: 7.4
env: DEPS=low PROFILE=default
- php: 7.4
env: DEPS=low PROFILE=symfony2
- php: nightly
env: DEPS=low PROFILE=default
- php: nightly
env: DEPS=low PROFILE=symfony2
allow_failures:
- php: nightly
fast_finish: true
before_script:
- Xvfb $DISPLAY -extension RANDR &> /dev/null &
- LATEST_CHROMEDRIVER_VERSION=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
- wget --no-verbose https://chromedriver.storage.googleapis.com/$LATEST_CHROMEDRIVER_VERSION/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip -d ~/bin
- wget "https://selenium-release.storage.googleapis.com/${SELENIUM_VERSION%%.[[:digit:]]}/selenium-server-standalone-${SELENIUM_VERSION}.jar" -O selenium.jar
- java -jar selenium.jar &> /dev/null &
- php -S localhost:8080 -t tests/fixtures/www &> /dev/null &
- cp behat.yml{.dist,}
- COMPOSER_PATH="/home/travis/.phpenv/versions/$TRAVIS_PHP_VERSION/bin/composer"
- php -d memory_limit=-1 $COMPOSER_PATH install
- test "$DEPS" == "high" || php -d memory_limit=-1 $COMPOSER_PATH update --prefer-lowest
- test ${TRAVIS_PHP_VERSION:0:1} -lt 7 || composer update atoum/atoum
script:
- ./bin/atoum
- ./bin/behat -fprogress --tags="~@user&&~@>php${TRAVIS_PHP_VERSION:0:3}" --no-interaction --profile=$PROFILE