forked from polylang/polylang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (68 loc) · 2.78 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
# TravisCI configuration for polylang/polylang
if: "branch = master"
language: "php"
os:
- "linux"
dist: "xenial"
jobs:
include:
- name: "PHPCS + PHPStan - PHP 7.2"
php: "7.2"
env: "WP_VERSION=latest WP_MULTISITE=0"
install:
- "composer install"
script:
- "vendor/bin/phpcs -s --extensions=php,js ./"
- "vendor/bin/phpstan analyze --memory-limit=512M"
- name: "WP oldest - PHP 7.2"
php: "7.2"
env: "WP_VERSION=5.1 WP_MULTISITE=0"
script:
- "vendor/bin/phpunit --verbose"
- name: "WP latest - PHP 5.6"
php: "5.6"
env: "WP_VERSION=latest WP_MULTISITE=0"
- name: "WP latest - PHP 8.0"
php: "8.0"
env: "WP_VERSION=latest WP_MULTISITE=0"
- name: "WP latest multisite - PHP 7.2"
php: "7.2"
env: "WP_VERSION=latest WP_MULTISITE=1"
- name: "WP nightly - PHP 8.0"
php: "8.0"
env: "WP_VERSION=nightly WP_MULTISITE=0"
allow_failures:
- php: "8.0"
env: "WP_VERSION=nightly WP_MULTISITE=0"
services:
- "mysql"
cache:
directories:
- "${HOME}/.composer/cache"
before_install:
- "phpenv config-rm xdebug.ini"
- "export PATH=\"$(composer config --absolute --global bin-dir):${PATH}\""
install:
- |
if [[ "${TRAVIS_PHP_VERSION:0:1}" == "8" ]]; then
composer require --no-interaction --update-with-dependencies --ignore-platform-reqs --dev "wpsyntex/wp-phpunit:dev-branch-7.5" "behat/behat ^3.8"
elif [[ "${TRAVIS_PHP_VERSION:0:3}" == "5.6" ]]; then
composer remove --no-interaction --no-update --dev "szepeviktor/phpstan-wordpress"
composer require --no-interaction --update-with-dependencies --dev "wpsyntex/wp-phpunit:dev-branch-5.7" "behat/behat ^3.7"
else
composer install --no-interaction
fi
- "bash vendor/wpsyntex/wp-phpunit/bin/install-wp-tests.sh wordpress_test root \"\" localhost \"${WP_VERSION}\""
- "bash tests/bin/install-plugins.sh"
script:
- "vendor/bin/phpunit --verbose"
- "vendor/bin/behat --verbose"
notifications:
email:
on_success: "never"
on_failure: "change"
slack:
rooms:
- secure: "Ydrk6ilDyS5ymD1qGnHlRYIyyTNnZjjM2ZS7HK/D0n/FXCWNHeOxPzEiyO2QZ5eEtREuceKGBfPiDe
+cG3P4x6kQvS8w8p62hrlMapOJQF2jCxVlczhQmbFgv8FFlKHwyfVhrIGDitDCa+rAzsBRS/cIm6C9YzQ1BQ7zbF2Mfr0c/1hVQ
/0OMVuvqYR71KjV5G6kSe/j57ch4IoB0Emz2TWHAErk204wvXgO+1g55GzI3okufopgdmm8/86D1pc1/Sx/uzrTdHI5/zgLSFbQVIp7+Ib1GaAJmHdG3Ks/8nfJdJOKxfNbaJBSzOCtJjkjW4oa/1Kq6i7qA1vsUj/f4C5Bz0aKZ0D5CMN6zVjVRnmQ9xuhm4uSjV42MGDaR9tqT/QZICOG2rFINgNfvNT6l8cqADWZs200JE+0EDF6apbfihLDIFhjBg8fCaxRZHbHfH541l6TLTGjefZLXusFi1n7iMpt37PbX8WZgRliDxu3f5HA0IW6S4LzFXlaj+qeMbDmxIeNDFdKgA+6/DwC7D28+IjXXISHsR7u5kC7ccAxRKUYTPcN7Jk737UpDYc7a5YKNg1QDRagbQCCRvJyYHLWlFwtNUFu/0dWKUIk+G3FhZfDvkNGUdOpU5DBongCVTT3Hpw2JfsvRkYNkY8VYXNT8H5J0+1ZsNR/aWMmlqo="