forked from paulgibbs/behat-wordpress-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (51 loc) · 1.37 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: xenial
addons:
apt:
sources:
- google-chrome
packages:
- libxml2-utils
- xvfb
chrome: stable
sudo: false
services:
- mysql
php:
- 7.2
- 7.3
cache:
apt: true
directories:
- $HOME/.composer/cache/files
git:
depth: 3
quiet: true
submodules: false
matrix:
fast_finish: true
env:
global:
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-progress --no-suggest --prefer-dist"
- WP_VERSION="~5.1"
- WP_WEBROOT="tests/app/www/"
matrix:
- LABEL="wpcli" BEHAT_PARAMS="{\"extensions\":{\"PaulGibbs\\\\WordpressBehatExtension\":{\"default_driver\":\"wpcli\"}}}"
- LABEL="wpphp" BEHAT_PARAMS="{\"extensions\":{\"PaulGibbs\\\\WordpressBehatExtension\":{\"default_driver\":\"wpphp\"}}}"
before_install:
- phpenv config-rm xdebug.ini
- scripts/before-install.sh
install:
- travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo
- travis_retry composer install $DEFAULT_COMPOSER_FLAGS
- travis_retry composer require roots/wordpress $WP_VERSION
# Start webserver.
- php -S localhost:8000 -t $WP_WEBROOT 2>/dev/null &
- sleep 5
- scripts/install.sh
# Start Chrome.
- google-chrome-stable --headless --disable-gpu --no-sandbox --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222 &
- sleep 5
script:
- curl -I http://localhost:8000
- composer run ci-tests