-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
121 lines (111 loc) · 2.82 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
language: php
php:
- 5.6
env:
global:
- DB_ENGINE=InnoDB
matrix:
- WP_VERSION=
- WP_VERSION=5.1
- WP_VERSION=5.0
- WP_VERSION=4.9.9
- WP_VERSION=4.8.4
- WP_VERSION=4.7.5
- WP_VERSION=4.6.1
- WP_VERSION=4.5
- WP_VERSION=4.4.2
- WP_VERSION=4.3.1
- WP_VERSION=4.2.4
- WP_VERSION=4.1.5
- WP_VERSION=4.0.1
- WP_VERSION=3.9
- WP_VERSION=3.8
- WP_VERSION=3.7
- WP_VERSION=3.6
- WP_VERSION=3.5
- WP_VERSION=3.4
- WP_VERSION=3.3
- WP_VERSION=3.2
matrix:
include:
- php: 5.2
dist: precise
env: WP_VERSION=5.1
- php: 5.2
dist: precise
env: WP_VERSION=4.8.4
- php: 5.2
dist: precise
env: WP_VERSION=4.0.1
- php: 5.2
dist: precise
env: WP_VERSION=3.9
- php: 5.2
dist: precise
env: WP_VERSION=3.5
- php: 5.2
dist: precise
env: WP_VERSION=3.3
- php: 5.2
dist: precise
env: WP_VERSION=3.2
- php: 5.3
dist: precise
env: WP_VERSION=5.1
- php: 5.4
env: WP_VERSION=5.1
- php: 5.5
env: WP_VERSION=5.1
- php: 5.6
env: DB_ENGINE=MyISAM DB_CHARSET=latin1 WP_UPGRADE=1
- php: 7.1
env: WP_VERSION=
- php: 7.2
env: WP_VERSION=
- php: 7.3
env: WP_VERSION=
- php: 7.0
env: WP_VERSION= DB_CHARSET=utf8mb4
- php: 7.0
env: PLUGINS=akismet.3.1.11:jetpack.4.2.2:wordpress-seo.3.3.4:wordfence.6.1.14:contact-form-7.4.5:google-sitemap-generator.4.0.8
- php: 7.0
env: WP_VERSION= WP_T_MULTI_SERVER=http://wpti.dev WP_T_SERVER=http://after.wpti.dev WP_T_MULTISITE=1
dist: trusty
addons:
hosts:
- wpti.dev
- before.wpti.dev
- after.wpti.dev
apt:
packages:
- nginx-light
before_script:
- phpenv config-rm xdebug.ini || true
- echo 'always_populate_raw_post_data=-1' > /tmp/custom.ini
- phpenv config-add /tmp/custom.ini
- tests/integration-environment/composer-update.sh
- mysql -e 'create database wordpress;'
- cd db
- $TRAVIS_BUILD_DIR/vendor/bin/ruckus.php db:migrate
- cd $TRAVIS_BUILD_DIR
- tests/integration-environment/create.sh
- cd $TRAVIS_BUILD_DIR/tests/mocha
- nvm install 0.10.36
- nvm use 0.10.36
- npm install
- cd $TRAVIS_BUILD_DIR
- export PATH=$PATH:$TRAVIS_BUILD_DIR/tests/mocha/node_modules/.bin/:$TRAVIS_BUILD_DIR/tests/integration-environment/
script:
- vendor/bin/phpunit-php52
- cd $TRAVIS_BUILD_DIR/tests/mocha && PHANTOMJS_EXECUTABLE=node_modules/.bin/phantomjs mocha-casperjs --timeout=360000
after_script:
- cd $TRAVIS_BUILD_DIR
- tests/integration-environment/shutdown.sh
- head --bytes=1M /tmp/fpm-php.www.log
cache:
directories:
- vendor
- tests/integration-environment/cache
- tests/mocha/node_modules
after_failure:
- $TRAVIS_BUILD_DIR/tests/mocha/debug-to-transfer.sh '/tmp/*.screen.png'