This repository has been archived by the owner on Feb 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
49 lines (49 loc) · 2.44 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
sudo: false
dist: xenial
language: php
services:
- mysql
php:
- 7.2
env:
matrix:
- WOO_VERSION="3.6.5" WP_VERSION=latest
global:
- secure: WOaorzvaU3EDHc+BdME43/Ktgrgk/X0ti2QeYcyUfiNpvwaz4JRa7H2XmgUfY/uzpRIE0zmHCQhgiCVvNu1SJRQ4NEdcrnqdjsLOVEJJUJNsvu0G9ejbmVzjEiDqOMQKGG/d9q+Ry/vsvUG/gx5qzXZhf4DUP/AB1LW4Du3+aXX23jEu33OG3zakbLYPVAH+WNCOkLCjaUWYOLrvHgKQGARFFyWyORm5c6yfSzPaxULciNzPF40cmzc0eKOTvbdeGh4VKnowAPxU59LiVigsI4FMjNpeX++sWyGbzQRageMkvrrpsk099L0QALzW6jrCct08gkkjj9dS0TBBIN8Rs74cAPd0uDQAS9pt8zI6wJVf1zCznwUj2/u1I1RllY1EGVA1hXO64w5sS2Bfa/LwxHnNk8dzh+SKydt0MX8OfqWCWvgz1CvCfPiHWbAbkFIYcT/w5Oqe6F2GGD/6/YxrLuS9fe9PuvfLx+qjwGZ92S/elbEBhNBVrvDWAt56OyDQrAF4PwL6iF55XmwRmdUNKDC3XLYY3iaoQtVfI01l+Yf7ETXGzxBc9RRpJwn6eX5O6OrMLXx6ADlTcAgAb+RgbdTXf15eOYNoky/ZZslgjGsvPfTJ0w1HWX93qX7IMnd4Dw7RPzPEWbY5F8ymZtk1XmbyoNCJJq0ysCcGkHWoJsg=
- secure: g7gGR0yc6EVdMwULAU8zhCigLSBZrDaUfR73n0vUAl15TNmnciMU+ZcQTwOh8fWPyKq1SSgzjMz6IRj8n9KtQO+jKuPut6iEaX9frpN/KFPS1y4ceOdRAm5gVoYVfHLDcuYJ89mEFIWwsc6eVBT1sC/eS2FjwOPa/Lskg0zn6PbsGkrmpLZgykVEngBsyV8yVryXA0x8hScUVKE25EWP8iphu8hFso9L+brOGXUQSrZp39IKm+hYdzo4T4iq7JAvuGjj4FAyPrSi+WkOQFmsM0Yy33e53FEiCPALgS3WhQ8hSmRDGkInEsx+JhY7DkjQjzgqmXMcOW3r7u+mR4vlSvyamvIEdtgo/8W45WGsvOGgc9pGA5c3EUSnAyl3QaPs10RJZdUmSwxsAFAMrQG0jfLwF8Xu/17ihdoSvEiHEVkOimlWXi/qwPmZKrztqDlilJOrfS2gKs+o6ahNUicFccSytSUnl6AzvETq++tKFMqIwUxOZaEsmKhHtLJIIT271YGJHApqfg8NZP75g65H2DFRmJbikCxZl3vs3ooq0DdmMOJQx0WFGF4RzsKBBBGGytjEPOm5ZYKm4CUO4DCxh19sXMSRaN0VHf7OMcOjjhwYSW6B1n5RA6oIRTBav/ouTCmuf7vwSyITstAenju6oFp2cRrzwVOn3bDGdYLafkA=
matrix:
fast_finish: true
allow_failures:
- php: 7.3
install:
- cd /tmp
- git clone https://github.com/woocommerce/woocommerce
- cd woocommerce/
- git checkout tags/$WOO_VERSION
- bash tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
- cd ..
- cd $TRAVIS_BUILD_DIR
before_script:
- |
echo "TRAVIS_PHP_VERSION:" $TRAVIS_PHP_VERSION;
php -v;
php -r 'echo "PHP: ".PHP_VERSION."\n";';
if [ $(echo "$TRAVIS_PHP_VERSION >= 7.2" | bc -l) -eq 1 ]; then
curl -sSfL -o ~/.phpenv/versions/$TRAVIS_PHP_VERSION/bin/phpunit https://phar.phpunit.de/phpunit-6.5.14.phar;
fi
- 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
script:
- |
phpunit
WP_MULTISITE=1 phpunit
notifications:
email:
recipients:
- ottofromhell@gmail.com
on_failure: always