axmol/docs/RELEASING_RULES.md

157 lines
6.1 KiB
Markdown
Raw Normal View History

2014-11-07 06:43:45 +08:00
# How to release a new version of cocos2d-x
## Releases Rules
### Tagging
New releases must be tagged in github. The tag name must follow these rules:
cocos2d-x-Major.Minor[.Status]
or
cocos2d-x-Major.Minor.Revision[.Status]
Example of valid names:
* cocos2d-x-3.0rc0
* cocos2d-x-3.0
* cocos2d-x-2.1.1
* cocos2d-x-2.1.1rc0
See "Naming Conventions" below
### Announcing
Only stable releases must be announced on:
* [Blog](http://www.cocos2d-x.org/news)
All kind of releases (alpha,beta,rc, final) must be announced on:
* [Twitter](https://twitter.com/cocos2dx)
* [Forum](http://discuss.cocos2d-x.org/)
### Release Notes and Changelog
**BEFORE** releasing a new version (either stable or unstable), the following documents must be updated:
* [CHANGELOG](https://github.com/cocos2d/cocos2d-x/blob/v3/CHANGELOG)
* [Release Notes](https://github.com/cocos2d/cocos2d-x/blob/v3/docs/RELEASE_NOTES.md)
### Documentation
**BEFORE** releasing a new Minor or Major stable release, the following tasks MUST be done:
- All documentation MUST be updated to the new version. This includes:
- API Reference
- Programmers Guide
### Backward compatibility
- Minor versions MUST be backward compatible with previous minor versions. eg: v3.2 must be backward compatible with v3.1 and v3.0.
- Major versions SHOULD be backward compatible with previous major versions. Breaking backward compatibility in Major versions is acceptable only if it is extremely well justified
### Deprecated APIs
- APIs introduced in a Major version MUST NOT be deprecated in the same Major version. eg: An API introduce in v3.1 MUST NOT be deprecated the following v3.x releases.
- Deprecated APIs can be removed only after being deprecated for more than one complete Major cycle. eg: An API deprecated in v2.2 can only be removed in v4.0, but not before.
- Deprecated APIs MUST give a compile-time warning. And MUST tell the user which is the new API that superceeds it.
### Performance tests
- Performance tests MUST be run before releasing a Release Candidate
- If performance is worse than previous stable version, then the Release Candidate MUST NOT be released (See Naming Conventions below)
- Results of the performance tests must be documented in this [spreadsheet](https://docs.google.com/spreadsheet/ccc?key=0AvvkdgVbWvpZdHFudzdDT3NuYTRNTHlZZzRGZWYzMmc#gid=8)
### Samples and tests
**BEFORE** releasing a new Minor or Major stable release, the following tasks MUST be done:
- All the samples and tests must be updated to use the new version. This includes:
- The samples in [cocos2d-x-samples](https://github.com/cocos2d/cocos2d-x-samples) repository
- The demo games [EarthWarrior3D](https://github.com/chukong/EarthWarrior3D) and [FantasyWarrior3D](https://github.com/chukong/FantasyWarrior3D)
- All the tests bundled in cocos2d-x
- All the templates bundled in cocos2d-x
### Naming conventions
#### Alpha
The product is unstable. It could have memory leaks, or crashes, or the API is unstable. The product contains little QA.
Although the product is not ready for production, the product should be testable.
Alpha versions might have Core functionality that has just been refactored, meaning that Core functionality might be unstable, but should work Ok.
As an example, for cocos2d-x, an _Alpha_ version means:
* Basic functionality works Ok (not great, but OK), like Sprites, Scenes, actions, etc.
_* But it might have memory leaks, or crashes, or the recently added features might be unfinished. The documentation might not be updated.
* As an example, the Renderer refactoring must be done in "alpha" versions (but not Beta versions).
Alpha versions are NOT feature freeze. New features might be added in future alpha and beta versions.
#### Beta
The product is more stable than _Alpha_. The product might crash, but not frequently. No major changes were made in core components.
Smaller features could be refactored in _Beta_ versions, but the core functionality is stable.
The product has more QA.
The only difference between _Alpha_ and _Beta_, is that _Beta_ is more stable than _Alpha_. And that in _Beta_ versions no new major features will be added.
As an example, for cocos2d-x it means:
* All the Core features (Sprites, Menu, Labels, Director, Transitions) are stable. Bug fixes could have been added into the Core functionality, but no major refactoring were done in the Core.
* But perhaps new features like the new Particle Engine could be unfinished, or the Cocos Studio reader might crash.
* Some cocos2d-x users might want to use a beta version for real games.
Beta versions are NOT feature freeze. __Small__ new features might be added in future _Beta_ versions. New __BIG__ features that might affect the Core functionality must only be added in _Alpha_ versions, and not in _Beta_ versions.
#### Release Candidate
Release candidate means that, unless major bugs are found, the product is ready for release.
The difference between _Release Candidate__ and _Final_ is that RC has less testing than the final version.
Many cocos2d-x users might want to try and use the RC releases for production.
RC versions ARE feature freeze. No new features, no matter how small they are, MUST be added in RC versions, because as the name implies, it is a _Release Candiate_.
#### Final
It is the new stable version.
### Number conventions
major.minor [revision | status]
#### Major
The major number is increased when there are significant jumps in functionality such as changing the framework which could cause incompatibility with interfacing systems
#### Minor:
The minor number is incremented when only minor features or significant fixes have been added.
#### Revision:
The revision number is incremented when minor bugs are fixed.
#### Status:
The status could be: alphaN, betaN or rcN.
'N' is a number, and the first MUST always be 0.
#### Examples
v2.0-alpha0:
- New major version of cocos2d-x.
- Unstable
v2.1.3:
- Stable version of cocos2d-x. It is the same as v2.1 plus some bug fixes.
v2.2-beta0:
- Similar to v2.1.3, but some new features were added, but are not stable yet.
v2.2:
- Similar to v2.1.3, but some small features were added. The new features are stable.