-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
48 lines (40 loc) · 1.54 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
language: php
# Distrubution / environments: https://docs.travis-ci.com/user/reference/overview/
# Ubuntu Trusty does not support php8: https://docs.travis-ci.com/user/languages/php/
dist: focal
services:
# Specifically including MySQL was not needed with Trusty, but other environments do need it.
- mysql
notifications:
email:
on_success: never
on_failure: change
language: php, node_js
node_js:
- lts/*
env:
- WP_VERSION=latest WP_MULTISITE=0
matrix:
include:
- php: 7.4
before_script:
- yarn install
# Remove phpunit and install best phpunit version based on this environment.
- composer update phpunit/phpunit
# A note on our composer / yarn usage:
# Our composer post-autoload-dump script will copy files from within node_modules/* to our plugin
# and then delete the node_modules folder. If node_modules are needed after this point, such
# as for "yarn run js-lint", another "yarn install" will be needed.
- composer install -o
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- php: 8.0
before_script:
- yarn install
- composer update phpunit/phpunit
- composer install -o
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
script:
- vendor/phpunit/phpunit/phpunit --debug
# Temporarily disabling js-lint. @todo This needs to be fixed.
# The current config used, eslint-config-wordpress, is deprecated. That packages names replacements.
# - yarn run js-lint