Skip to content

Commit

Permalink
added script to run tests and related commands (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajwann authored and paulcsmith committed Oct 10, 2018
1 parent e7e5c5f commit 37cfefb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ require "lucky_record"

1. Fork it ( https://github.com/luckyframework/lucky_record/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
3. Make your changes
4. Run `./bin/test` to run the specs, build shards, and check formatting
5. Commit your changes (git commit -am 'Add some feature')
6. Push to the branch (git push origin my-new-feature)
7. Create a new Pull Request

## Testing

Expand Down
8 changes: 8 additions & 0 deletions bin/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#! /bin/bash

printf "\nrunning specs with 'crystal spec'\n\n"
crystal spec
printf "\nbuilding shards with 'shards build'\n\n"
shards build
printf "\nformatting code with 'crystal tool format src spec'\n\n"
crystal tool format src spec

0 comments on commit 37cfefb

Please sign in to comment.