This repository has been archived by the owner on May 12, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (58 loc) · 1.28 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
65
66
67
68
69
70
71
72
73
language: php
branches:
only:
- master
- /^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/
services:
- mysql
cache:
apt: true
directories:
- $HOME/.composer/cache/files
addons:
apt:
packages:
- nginx
hosts:
- wp.dev
notifications:
email:
on_success: never
on_failure: change
php:
- 7.1
- 7.2
- nightly
env:
global:
- COMPOSER_NO_INTERACTION=1
matrix:
- WP_VERSION=nightly
- WP_VERSION=latest
- WP_VERSION=4.9.3
- WP_VERSION=4.8.5
matrix:
allow_failures:
- php: nightly
- env: WP_VERSION=nightly
fast_finish: true
before_install:
- export PATH="$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
- export PATH="$TRAVIS_BUILD_DIR/bin:$PATH"
- export TNW_TPL_DIR="$TRAVIS_BUILD_DIR/tpl"
install:
- composer install --prefer-dist --no-suggest
before_script:
- tnw-install-nginx
- tnw-install-wordpress
- tnw-prepare-codeception
script:
### Assert that WordPress is served at `http://wp.dev:8080`
# Echo the WordPress Homepage source code
- curl -vsf 'http://wp.dev:8080' &> /dev/stdout
# Show the wp-config.php source code
- cat /tmp/wordpress/wp-config.php
# There should be nothing in the Nginx error log
- cat /tmp/error.log
# Display the WordPress version.
- wp core version --path=/tmp/wordpress