This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
78 lines (61 loc) · 1.76 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
if: "branch = master"
language: "php"
os:
- "linux"
dist: "bionic"
jobs:
include:
- name: "PHPCS + PHPStan - PHP 7.4"
php: "7.4"
env: "WP_VERSION=latest WP_MULTISITE=0"
install:
- "composer update"
script:
- "vendor/bin/phpcs"
- "vendor/bin/phpstan analyze --memory-limit=512M"
- name: "WP 5.2 - PHP 7.2"
php: "7.2"
env: "WP_VERSION=5.2 WP_MULTISITE=0"
- name: "WP latest - PHP 7.0"
dist: "xenial"
php: "7.0"
env: "WP_VERSION=latest WP_MULTISITE=0"
- name: "WP latest - PHP 8.2"
php: "8.2"
env: "WP_VERSION=latest WP_MULTISITE=0"
- name: "WP nightly - PHP 7.0"
dist: "xenial"
php: "7.0"
env: "WP_VERSION=nightly WP_MULTISITE=0"
- name: "WP nightly - PHP 8.2"
php: "8.2"
env: "WP_VERSION=nightly WP_MULTISITE=0"
allow_failures:
- dist: "xenial"
php: "7.0"
env: "WP_VERSION=nightly WP_MULTISITE=0"
- php: "8.2"
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 [[ $WP_VERSION == "5.2" ]]; then
composer require --no-interaction --no-update --ignore-platform-reqs --dev "phpunit/phpunit ^7.5"
fi
- composer remove --no-interaction --no-update --dev "phpstan/phpstan"
- composer remove --no-interaction --no-update --dev "wpsyntex/polylang-phpstan"
- "composer update"
- "bash tests/bin/install-wp-tests.sh wordpress_test root \"\" localhost \"${WP_VERSION}\""
script:
- "vendor/bin/phpunit --verbose"
notifications:
email:
on_success: "never"
on_failure: "change"