Tools, files, and other necessary things to get your machine configured for work at Bayes.
You can install this tool without downloading the repo yourself by downloading and
running install.sh
(no need to clone the repo yourself). Or simply run the following command:
sudo curl -s https://raw.githubusercontent.com/bayesimpact/bayes-developer-setup/HEAD/install.sh | bash
Test your installation by verifying that hub was installed correctly.
Running which hub
should return something like "~/.bayes-developer-setup/bin/hub".
Hub is not found: This script will automatically write the necessary updates to your .bashrc file. If you use a different file (e.g. .bash_profile) you will need to set up your .bash_profile to read from your .bashrc.
To do this, add the follwing to your .bash_profile:
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
then run source ~/.bash_profile
to update.
Run tests for git-submit
using Docker:
docker-compose run --rm test
Run tests for the Reviewable rule using Docker:
docker-compose run --rm test-reviewable
During development, you can have the tests be re-executed on any change you make
to the files. In order to do that run the container with:
docker-compose run --rm test-reviewable npm run test:watch
.
To submit a pull request:
git up
and git rebase
to make sure your code is up to date with default branch (this will rebase your code)git review [reviewer-username]
to push your branch and open a pull request with the specified reviewergit review -f
git submit
to merge your PR and delete your local branch