Add check-update to wp cli to check for latest version II.#1386
Add check-update to wp cli to check for latest version II.#1386danielbachhuber merged 5 commits intowp-cli:masterfrom szepeviktor:cli-version
check-update to wp cli to check for latest version II.#1386Conversation
<?php
header( 'Content-Type: application/json; charset=utf-8' );
echo '[
{
"tag_name": "v<VERSION_TO_TEST>"
}
]';
// or include('some-file.txt');And start the PHP built-in webserver echo '127.0.0.1 api.github.com' >> /etc/hosts
apt-get -y install stunnel4
make-ssl-cert generate-default-snakeoil --force-overwrite
cat /etc/ssl/private/ssl-cert-snakeoil.key /etc/ssl/certs/ssl-cert-snakeoil.pem > /etc/stunnel/stunnel.pem
php -S 127.0.0.1:8443 script.php &
SERVER_PID=$!
# php has no SSL
stunnel3 -d 127.0.0.1:443 -r 8443 -p /etc/stunnel/stunnel.pem
wp cli check-update --major
# maybe kill -9 $SERVER_PID; killall -9 stunnel4 ## not stunnel3 ! |
There was a problem hiding this comment.
Let's call this update_type to be specific.
I'd say skip CI testing right now. From my manual testing: Can we only show the latest version for each "major" version? e.g. drop Lastly, the semantics of semver are MAJOR.MINOR.PATCH. Our "major" needs to be "minor", and "minor" needs to be "patch" |
|
Ready. Added another function to skip earlier minors. |
|
👍 |
Add `check-update` to `wp cli` to check for latest version II.
|
One last Q: If WP-CLI is up to date and |
|
Yes. Please do that yourself! I am doing |
|
No description provided.