Build Test Packages From A Release Branch/de: Difference between revisions

From Joomla! Documentation

Created page with "Gelegentlich müssen neue Funktionen und vorhandene Fehler während der Installation oder des Updates zwischen Joomla! Versionen getestet werden. Das [https://github.com/joom..."
Created page with "== Voraussetzungen =="
Line 2: Line 2:
Gelegentlich müssen neue Funktionen und vorhandene Fehler während der Installation oder des Updates zwischen Joomla! Versionen getestet werden.  Das [https://github.com/joomla/joomla-cms/blob/staging/build/build.php Build-Skript], das sich im CMS Repo auf GitHub befindet, kann einfach verändert werden, um Pakete aus einem feature branch zu erstellen, und führt zu einer vollständigen Palette von Paketen (Vollinstallation und Update) zur Verwendung.
Gelegentlich müssen neue Funktionen und vorhandene Fehler während der Installation oder des Updates zwischen Joomla! Versionen getestet werden.  Das [https://github.com/joomla/joomla-cms/blob/staging/build/build.php Build-Skript], das sich im CMS Repo auf GitHub befindet, kann einfach verändert werden, um Pakete aus einem feature branch zu erstellen, und führt zu einer vollständigen Palette von Paketen (Vollinstallation und Update) zur Verwendung.


===Requirements===
== Voraussetzungen ==
In order to build the packages, your local checkout must be in sync with the base Joomla! CMS repo, to include all release tags.  This is important because the build script uses the git tags created at each release to build the update packages.  Next, your feature branch should be in sync with the staging branch from the Joomla! CMS repo to ensure that the current code is being tested in addition to your proposed changes.
In order to build the packages, your local checkout must be in sync with the base Joomla! CMS repo, to include all release tags.  This is important because the build script uses the git tags created at each release to build the update packages.  Next, your feature branch should be in sync with the staging branch from the Joomla! CMS repo to ensure that the current code is being tested in addition to your proposed changes.



Revision as of 14:10, 19 October 2019

Gelegentlich müssen neue Funktionen und vorhandene Fehler während der Installation oder des Updates zwischen Joomla! Versionen getestet werden. Das Build-Skript, das sich im CMS Repo auf GitHub befindet, kann einfach verändert werden, um Pakete aus einem feature branch zu erstellen, und führt zu einer vollständigen Palette von Paketen (Vollinstallation und Update) zur Verwendung.

Voraussetzungen

In order to build the packages, your local checkout must be in sync with the base Joomla! CMS repo, to include all release tags. This is important because the build script uses the git tags created at each release to build the update packages. Next, your feature branch should be in sync with the staging branch from the Joomla! CMS repo to ensure that the current code is being tested in addition to your proposed changes.

Editing the Build Script

To build packages from your feature branch, all you need to do is make two changes to the build script.

  • Line 66:
    • Change this line to read "system($gitPath . ' archive BRANCH-NAME | tar -x -C ' . $fullpath);" and replace your branch name as appropriate
  • Line 144:
    • Change this line to read "$command = $gitPath . ' diff tags/' . $previousTag . ' BRANCH-NAME --name-status > diffdocs/' . $version . '.' . $num;" and replace your branch name as appropriate

Run the Script

So long as you don't have any PHP syntax errors and each of the release tags are available in your local checkout, you should be able to run the build script and have full packages ready for testing.