1
0
Fork 0

Stop encouraging people ignore tests from their releases

pull/1467/head
Jordi Boggiano 2013-01-07 18:29:37 +01:00
parent 78290945b8
commit bf328697e1
1 changed files with 5 additions and 5 deletions

View File

@ -117,8 +117,8 @@ the `.gitignore`.
## Light-weight distribution packages ## Light-weight distribution packages
Including the tests and other useless information like `.travis.yml` in Some useless information like `.travis.yml`, or large examples should typically
distributed packages is not a good idea. not be included in distributed packages.
The `.gitattributes` file is a git specific file like `.gitignore` also living The `.gitattributes` file is a git specific file like `.gitignore` also living
at the root directory of your library. It overrides local and global at the root directory of your library. It overrides local and global
@ -129,9 +129,9 @@ Use `.gitattributes` to prevent unwanted files from bloating the zip
distribution packages. distribution packages.
// .gitattributes // .gitattributes
/Tests export-ignore /demo export-ignore
phpunit.xml.dist export-ignore phpunit.xml.dist export-ignore
Resources/doc/ export-ignore /Resources/doc/ export-ignore
.travis.yml export-ignore .travis.yml export-ignore
Test it by inspecting the zip file generated manually: Test it by inspecting the zip file generated manually:
@ -139,7 +139,7 @@ Test it by inspecting the zip file generated manually:
git archive branchName --format zip -o file.zip git archive branchName --format zip -o file.zip
> **Note:** Files would be still tracked by git just not included in the > **Note:** Files would be still tracked by git just not included in the
> distribution. This will only work for GitHub packages installed from > zip distribution. This will only work for GitHub packages installed from
> dist (i.e. tagged releases) for now. > dist (i.e. tagged releases) for now.
## Publishing to a VCS ## Publishing to a VCS