CONTRIBUTING.md
March 1, 2018 ยท View on GitHub
Running benchmarks
carmen-cache includes benchmarks which are run during testing to ensure that they work, but not to ensure that they're fast. Developers proposing substantial changes should manually run the benchmarks and compare the results with master to be confident that any changes don't negatively affect performance. Benchmarks can be run by running yarn bench.
Publishing node-pre-gyp binaries
Users who are installing carmen-cache and not actively doing development usually download prebuilt static binaries at yarn install time automatically through node-pre-gyp.
- Binaries are published by travis to S3 and triggered by including
[publish binary]in a commit message. - Binaries are published using the
versionkey ofpackage.jsonon the commit with this message.
What this means in practice:
- Publishing binaries for a release: make sure
package.jsonis updated to the new release version and then commit with[publish binary]. This can often be done in the same commit as the release, e.g.commit -m "5.0.0 [publish binary]" - Publishing for a dev build: make sure
package.jsonuses a dev semver forversion, e.g.5.0.0-cache-experiments-v1and then push a commit with[publish binary].