Consolidate Build & Release section.
This commit is contained in:
parent
54305c4d33
commit
0dcb49d8ac
@ -113,12 +113,9 @@ Build & Release process
|
|||||||
|
|
||||||
> This is work in progress. Please refer to [#268](https://github.com/picocms/Pico/issues/268) for details.
|
> This is work in progress. Please refer to [#268](https://github.com/picocms/Pico/issues/268) for details.
|
||||||
|
|
||||||
Defined below is a specification to which the Build and Release process of Pico should follow. We use [travis-ci](https://travis-ci.com) to automate the process, and each commit to `master` should be deployable. Once a `feature/branch` or the `master` branch have reached a point where the need for a version increase is necessary, move through these phases to generate a Pico release.
|
We're using [Travis CI](https://travis-ci.com) to automate the build & release process of Pico. It generates and deploys [phpDoc](http://phpdoc.org) class docs for new releases and on every commit to the `master` branch. Travis also prepares new releases by generating Pico's pre-built packages and uploading them to GitHub.
|
||||||
|
|
||||||
### Commit phase
|
It is important that each commit to `master` is deployable. Once a `feature/branch` or the `master` branch have reached a point where the need for a version increase is necessary, you can trigger this process by pushing a new Git Tag. The tag references a (usually empty) commit which message follows the following template:
|
||||||
|
|
||||||
- Make/Commit/Merge changes
|
|
||||||
- Use a formatted commit message with contents of `CHANGELOG.md` since last release.
|
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```
|
```
|
||||||
@ -129,42 +126,12 @@ Defined below is a specification to which the Build and Release process of Pico
|
|||||||
* [Security] ...
|
* [Security] ...
|
||||||
```
|
```
|
||||||
|
|
||||||
- Tagging a commit on the `master` branch will trigger an automatic build..
|
<!-- __Please submit pull-requests with a properly formatted commit message and
|
||||||
|
[SemVer](http://semver.org) increase to avoid the need for manual amendments.__ -->
|
||||||
|
|
||||||
- __Please submit pull-requests with a properly formatted commit message and
|
After deploying a new release, you will need to amend the release information on GitHub with the release title (taken from changelog), and changelog itself.
|
||||||
[SemVer](http://semver.org) increase to avoid the need for manual amendments.__
|
|
||||||
|
|
||||||
|
__Note__
|
||||||
### Analysis phase
|
|
||||||
|
|
||||||
Does the commit pass all `travis-ci` checks?
|
|
||||||
|
|
||||||
- We test PHP 5.3, 5.4, 5.5, 5.6, 7, the nighlty build, and HHVM
|
|
||||||
|
|
||||||
If not, all errors will need to be corrected before the build can complete.
|
|
||||||
|
|
||||||
### Packaging phase
|
|
||||||
|
|
||||||
###### travis-ci
|
|
||||||
- will run [composer](http://getcomposer.org) locally with `req-dev` dependencies.
|
|
||||||
- will generate [PhpDocumentor](http://phpdoc.org) class docs automatically
|
|
||||||
- will run our `deploy-phpdoc.sh` script
|
|
||||||
- will create a ZIP archive (so vendor/ is included)
|
|
||||||
|
|
||||||
### Release phase
|
|
||||||
|
|
||||||
###### travis-ci
|
|
||||||
- will remove phpDocumentor from dependencies
|
|
||||||
- will create new Git release at tag
|
|
||||||
- will include the properly formatted commit message including the changelog of items since the last release.
|
|
||||||
- will include ZIP archive in release
|
|
||||||
|
|
||||||
###### Note:
|
|
||||||
If a properly formatted commit message was not provided, you may have to update release information on GitHub with:
|
|
||||||
- release title (taken from changelog)
|
|
||||||
- changelog
|
|
||||||
|
|
||||||
### Announcements
|
|
||||||
- Releases will be available at: [https://github.com/picocms/Pico/releases](https://github.com/picocms/Pico/releases)
|
- Releases will be available at: [https://github.com/picocms/Pico/releases](https://github.com/picocms/Pico/releases)
|
||||||
|
|
||||||
- Pico will be automatically updated on [Packagist](http://packagist.org/packages/picocms/pico)
|
- Pico will be automatically updated on [Packagist](http://packagist.org/packages/picocms/pico)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user