Tim Kuehn
e8fcf0e4de
Fix issue with grep exit status
2016-02-27 02:30:39 -08:00
Tim Kuehn
a8766a9200
Use rustfmt --write-mode=diff in lieu of hashes
2016-02-25 00:50:46 -08:00
Tim Kuehn
ef96c87226
Skip children when rustfmting in pre-commit
2016-02-25 00:50:37 -08:00
Tim Kuehn
3543b34f2b
Fix formatting check.
...
* shasum suffixes the checksum with '- filename' so pipe in the text instead.
* rustfmt prefixes the formatting with 'Using rustfmt config file filename' so pipe in the text instead.
2016-02-25 00:50:29 -08:00
Adam Wright
06a2cab31c
Move /bin/bash to the top so it works
2016-02-19 23:08:50 -08:00
Adam Wright
4ed127b39e
NOT FOUND instead of FAILED
2016-02-19 21:31:11 -08:00
Adam Wright
d0e9693263
Be consistent with function declarations
2016-02-18 01:40:44 -08:00
Adam Wright
6d23174219
Build on nightly too, as per review comment
2016-02-18 01:36:39 -08:00
Adam Wright
a06b583334
Also check existence of shasum
2016-02-18 01:27:07 -08:00
Adam Wright
82762583be
Change colors a bit, only exit when check_toolchain fails..
2016-02-18 01:06:31 -08:00
Adam Wright
3462451256
Check for multirust, rustfmt, clean up some things
2016-02-18 01:06:31 -08:00
Adam Wright
17d800b8a8
Update comments
2016-02-18 01:06:31 -08:00
Adam Wright
403eba201b
Group builds/tests by toolchain for speed
2016-02-18 01:06:31 -08:00
Adam Wright
f2328d200e
pre-commit doesn't modify files, just checks foramtting
2016-02-18 01:06:31 -08:00
Adam Wright
07c052a1c1
Individually format crates, use -q
2016-02-15 18:54:15 -08:00
Adam Wright
34cf0c8172
Updated hook to print messages like prepush
2016-02-15 18:30:26 -08:00
Adam Wright
7b196400b8
Revamp push hook
...
1. Create environment variables for options
3. Use multirust to test different toolchains. If multirust isn't
installed, use current toolchain.
2016-02-15 17:28:16 -08:00
Adam Wright
e2756edd72
Test all crates and format on pre-commit
2016-02-15 13:58:04 -08:00
Tim Kuehn
a58dea0ec5
Update license from dual Apache 2.0/MIT to just MIT.
2016-02-08 11:52:51 -08:00
Adam Wright
14ef89bbca
Change the commit hook to print something while its running tests
2016-01-24 17:29:38 -08:00
Tim Kuehn
9bd7fc6711
Add missing license headers
2016-01-21 11:27:37 -08:00
Adam Wright
6e37d3a37e
Fix pre-push/commit hooks so they work.
...
- Move them back to the root directory of the repo
- Explicitly specify the path to the manifest we are running tests for
2016-01-12 23:35:53 -08:00
Tim Kuehn
6141b295d1
Add a tarpc_examples package
2016-01-11 23:39:58 -08:00
Adam Wright
1e42547ca4
Remove crap we don't need, actually fail on test result
2016-01-10 18:01:21 -08:00
Adam Wright
200a06ac57
Print FAIL in red.
2016-01-10 17:51:15 -08:00
Adam Wright
ea24921eff
Just go to a simple world where we check the branch we're on
2016-01-10 17:49:18 -08:00
Adam Wright
d906357ad8
Say we're done at the end.
2016-01-10 17:49:18 -08:00
Adam Wright
0d61812a3f
Updated error message when you're not on a branch
...
And fix uncommitted changes detection
2016-01-10 17:49:18 -08:00
Adam Wright
ab92f90aff
Don't try to stash, just tell the user they're dumb.
2016-01-10 17:49:18 -08:00
Adam Wright
0aa2661f02
Pre-push hook that rejects branches with non-passing tests
2016-01-10 17:49:18 -08:00
Adam Wright
3ea0f6fbb5
WIP
2016-01-10 17:49:18 -08:00