From 16b278b750f313c70072e8c3046868d4d1eecdc8 Mon Sep 17 00:00:00 2001 From: Derek Smart Date: Thu, 13 Jun 2019 14:58:46 -0400 Subject: [PATCH] Adds a new release script (branching only) (#19) * Release script: add commands for creating and updating release branches * Add .svnignore for release branches and tags * Fix linting errors * Autofix linting errors with yarn php:autofix * Add a few other files and directories to svnignore * Fix undefined variable * allow .svnignore comments Co-Authored-By: Jeremy Herve * reorganize a little bit, standardize the output functions formatted, other jeremy feedback addressed * Add comment at the top of the svnignore file Co-authored-by: Jeremy Herve --- .svnignore | 27 +++++ bin/release.php | 270 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 297 insertions(+) create mode 100644 .svnignore create mode 100644 bin/release.php diff --git a/.svnignore b/.svnignore new file mode 100644 index 0000000000000..23db312eb5522 --- /dev/null +++ b/.svnignore @@ -0,0 +1,27 @@ +# The files and directories in the list below are excluded from the files we release to WordPress.org's SVN. +# This file is only used by our release script, in bin/release.php. +.codeclimate.yml +.editorconfig +.eslines.json +.eslintrc.js +.gitignore +.jshintrc +.npmrc +.nvmrc +.phpcs.xml.dist +.prettierrc +.travis.yml +renovate.json +bin +node_modules +vendor/automattic/jetpack-standards +vendor/bin +vendor/dealerdirect +vendor/phpcompatibility +vendor/sirbrillig +vendor/squizlabs +vendor/wp-coding-standards +composer.lock +package.json +to-test.md +yarn.lock diff --git a/bin/release.php b/bin/release.php new file mode 100644 index 0000000000000..5c5eb1e8fa0fd --- /dev/null +++ b/bin/release.php @@ -0,0 +1,270 @@ +