forked from kingandpartners/elastic-press
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (46 loc) · 2.71 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
dist: xenial
language: php
cache:
directories:
- $HOME/.composer/cache
env:
global:
- ELASTICSEARCH_URL=http://localhost:9200
- WP_ENV=test
- SITE_INDEX_KEY=elasticpress_
- FRONTEND_PATH=${PWD}/tests/frontend
- CMS_PATH=${PWD}/tests/cms
- secure: "a7MYYrKeOVDeTsYxwgwiQPwbIEyk4jfktwdf9yzCb24kh6jw9SNrZb4aENUDNX9X7hMoD8d+tZLvASIn1DcDLAg+PJFlCgxtx/Jo8my5qbOPFaP9T4juRvhVjcktzg0puiEaNkehbzqcFrTMKKZTT2b+I5SYY1F4v3+hrHH0MRK+RZUGCeJUqGjDjOdlMlOghEdB3Q7F0Sr2T6/YtySRqj5IefEwblaebVqo9fk5JzflVGrhlNG4VKP/m1zvijDyvukWO8aJ/xHUaRbfX3dz9OX6tvAJkFGaxXmNnzar0LFhFM7vHigN4pwmv6vy12qL4BkTN7rMkfy7jgFtgdWg8Pmqcl6yAEDr3Fsi6KsC0csKcI8okqieJSOsLwx7jQ6qc1Cq3yebfa+gHHjG28ihZ8XTa01FXRF6sECCgsv4RVC8EQWqCikiBkWiOfYw97eisMNVQUvnmGjcdcXqdjTga7eon7GBjfuK8JcRH73Ea3EuBsqoUSHZY7O8NMjf0Nny+KB/FK7cVRW3gH/38gVMknaacYodmoJMGR+NnlpVrxq431mK0jl+xkpXWAfB15MHmlAqpKRkZ2jmOiYo8Z3xsjV23ni4DUFqHE6hLMgp0I61tBUFVdrdk8/qe9tvZEqpBvVoshypWgSkfR0X4EwuAUaavCvUMh/iBt/LRmuFzSc="
- secure: "MmeIL1dRrmg4JPXbOHxNixxH9bUGgRSJFqEcXbnFyopDjW8Zvst/fC+186JbZh+8fPafnv26+dxYbdIRC0aRdsxj/fLd9z90dc+ypf5EztB3M0N2p3qrNmW5xKWutZDW8ckttdKrC8BXMiVpPC9XTHksAJgjthryGAyRKKoCuaOYZWuXD642Pk5nhpCbIRWDR56dIiMKZ8HsyhVAWfI7cqN+fs8/Lp39rHtb5Qr1kXvSXu0k8MRit6it343AHK8fCbdwmRCyi00S8TRdPaQglkRNHXjWnMjXk0XNfwuKoBarO7jHVZziE4StB2gYKa6oOB66BIw7jN3CdKAbQ19IaBjk14zzUDclYJQdTKP+5kGaDq7ctzJKqgbgLW/rCPMMYAFGs0yTrO9Mlvzs1fszZhGZK3KYvob4x7PxhH1+60NRujZIvkDSUOigt9htqtncPOGo6RyttDJEe16la0HNIte3gz3wS5c/QjCTEhgaIwVcfjcb4rDqYibxd1hH7X1G2pBCjXg7nAdxw2VeS5dZrC5Ux7lTx4QJe0xOPPxWlObSg1tYrcEVTkRdYz0El6MJre5MZWERKysXSwSW+3UDHk1C+KQguKK/Xl6zGnWPY9Qvovm3uIkmcXScieM0cWyupwKofw3V8zResV5Bx+1F7ifDVJV55/9xENtTGYOlLBM="
matrix:
include:
- php: 7.4
env: WP_VERSION=latest
- php: 7.3
env: WP_VERSION=latest
- php: 7.2
env: WP_VERSION=latest
before_install:
- curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.8.9.deb && sudo dpkg -i --force-confnew elasticsearch-6.8.9.deb
- sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch
- sudo rm -rf /var/lib/elasticsearch/*
- sudo service elasticsearch restart
- until curl --silent -XGET --fail http://localhost:9200; do printf '.'; sleep 1; done
install:
- composer self-update 1.10.6
- composer config -g http-basic.my.yoast.com token $YOAST_TOKEN
- composer install
before_script:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- |
if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
phpenv config-rm xdebug.ini
else
echo "xdebug.ini does not exist"
fi
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- composer global require "phpunit/phpunit:7.*"
script:
- bin/run-tests
services:
- mysql