1
1
mirror of https://github.com/srid/rib.git synced 2024-11-30 03:45:00 +03:00
rib/DEVELOPMENT.md
Sridhar Ratnakumar c99d99e0fe Add DEVELOPMENT.md
2020-01-08 15:20:26 -05:00

1.2 KiB

Developing rib

Use ghcid for quicker compilation cycles:

nix-shell --run ghcid

To test your changes, clone rib-sample and run it using your local rib checkout:

cd ..
git clone https://github.com/srid/rib-sample.git
cd rib-sample
nix-shell --arg rib ../rib --run 'ghcid -T main'

Release steps

  1. Create a release-x.y branch
  2. Finalize ChangeLog.md
  3. Run cabal haddock and sanity check the haddocks
  4. Commit all changes, and push a release PR.
  5. Generated sdist using cabal sdist
  6. Upload a package candidate
  7. Sanity check the upload, and then "publish" it publicly.
  8. Run cabal haddock --haddock-for-hackage to generated haddocks for hackage.
  9. Run cabal upload -d --publish $PATH_TO_TARBALL to update haddocks on the release.
  10. Squash merge the PR.
  11. Draft a new release on Github. Copy paste the change log. This will automatically create and push the new git tag.

Post-release

  1. Increment cabal version in .cabal file
  2. Plan, as first task, updating of nixpkgs and package dependencies.