Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
language: php

php:
- 5.6
- 7.0
- 7.4.33
- 8.0.26
- 8.1.13
- 8.2.0

# Declare which versions of WordPress to test against.
# Also declare whether or not to test in Multisite.
env:
- WP_VERSION=master WP_MULTISITE=0
- WP_VERSION=4.7 WP_MULTISITE=0
- WP_VERSION=4.8 WP_MULTISITE=0
- WP_VERSION=4.9 WP_MULTISITE=0
- WP_VERSION=5.0 WP_MULTISITE=0
- WP_VERSION=5.1 WP_MULTISITE=0
- WP_VERSION=5.9.5 WP_MULTISITE=0
- WP_VERSION=master WP_MULTISITE=1
- WP_VERSION=4.7 WP_MULTISITE=1
- WP_VERSION=4.8 WP_MULTISITE=1
- WP_VERSION=4.9 WP_MULTISITE=1
- WP_VERSION=5.0 WP_MULTISITE=1
- WP_VERSION=5.1 WP_MULTISITE=1
- WP_VERSION=5.9.5 WP_MULTISITE=1

services:
- mysql
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
"scripts": {
"clean": "rm -rf release && mkdir release",
"build": "npm run clean && npm run readme-to-md && npm run copy",
"copy": "npm run copy:php && npm run copy:txt && npm run copy:dist",
"copy": "npm run copy:php && npm run copy:txt && npm run copy:languages && npm run copy:dist",
"readme-to-md": "wp-readme-to-md --screenshot-url=https://raw.githubusercontent.com/petenelson/wp-rest-api-log/master/assets/{screenshot}.png && npm run badges",
"badges": "awk '/WordPress plugin to log REST API requests and responses/{while(getline line<\"badges.md\"){print line}} //' readme.md >tmp && mv tmp readme.md",
"copy:php": "cp *.php release && cp -R admin release && cp -R includes release",
"copy:txt": "cp *.txt release",
"copy:languages": "cp -R languages release",
"copy:dist": "cp -R dist release"
},
"dependencies": {},
Expand Down