-
Notifications
You must be signed in to change notification settings - Fork 2
Update Pantheon's Upstream
-
Go to upstream test site, uls-upstream-test
- Make sure the test site has the latest upstream.
- If site needs to be updated. Apply the upstream. Create a local instance. Run composer install. Commit and push the changes created by running composer install.
-
Click on admin development site (make sure the site is in SFTP mode, so you can check what plugins need to be updated)
-
Check plugins updates, core updates, and core theme updates to be added to the new upstream
-
Go to Wordpress (WP) dashboard and click on updates to check plugins compatibility with WordPress core latest version installed in your wp instance
-
Create local repo of the upstream, ci-jenkins-pantheon-wordpress
git clone git@github.com:cul-it/ci-jenkins-pantheon-wordpress.git
I am using SourceTree as my git GUI, but you can use terminal or your prefered git client.
-
Open Sourcetree and double click
REMOTES > origin > master
to get a local master branch under your local branches -
Click on
Git Flow button
and hit OK -
Select your local develop branch
-
Create a new feature, ex: "wordpress_update"
-
In your code editor, open your local upstream repo ci-jenkins-pantheon-wordpress's folder
-
Open
changelog.md
and update plugins, culu theme, paid plugins, custom plugins, core wp updates, or remove plugins. If you need to updated paid plugin, update them in their respectives repos -
Open
composer.json
file and update this file based on the changes of thechangelog.md
file -
Go to terminal
rm composer.lock
-
Then run
composer install
If you get this error:
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52
Type, export COMPOSER_MEMORY_LIMIT=-1
, for fixing the error and then run again, composer install
-
Go to sourcetree and commit yout changes
-
Click git flow and finish the feature created
-
On development branch push to remote development branch
-
After that jenkings will kick off a job
Then go to patheon and check [Continuous Integration Jenkins Pantheon Wordpress] (https://dashboard.pantheon.io/sites/a700ef3d-b210-44c1-8563-68a10650aa74#dev/code) Jenkins will create a multidev env and merge into dev. Check jenkins jobs number which will be the name of the muiltidev branch.
If job runs succesfullty go to develop branch on ci-jenkins-pantheon-wordpress
-
Create a new release.
-
Push to the release you have created
-
Go to git flow and finish current release
-
Name your tag. Ex: New upstream version
-
Go to master branch and push to github master. Jenkin will run again over the master branch.
-
If test is successful go to wp-ci-library-cornell-edu and see if there is a new upstream.