diff options
author | Matt Rendina <mrendina@stsci.edu> | 2019-04-15 10:18:59 -0400 |
---|---|---|
committer | Matt Rendina <mrendina@stsci.edu> | 2019-04-15 13:00:15 -0400 |
commit | 01957741c8bb74cec6e72c734ba0b8589efa1f72 (patch) | |
tree | feff8f7acce78abace30aaf1a45f6dafbf716efb /hooks | |
parent | d9d2b53ce76d4654f70766acb846c1b3baf5588a (diff) | |
download | jscu_refactor-01957741c8bb74cec6e72c734ba0b8589efa1f72.tar.gz |
Add tests dir; try out inclusion into jenkinsfile
Cleanup jenkinsfile. Add hook instalation script
Rename jenkinsfile.test
Update hook to use renamed Jenkinsfile
Diffstat (limited to 'hooks')
-rwxr-xr-x | hooks/pre-commit | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hooks/pre-commit b/hooks/pre-commit new file mode 100755 index 0000000..f4522e4 --- /dev/null +++ b/hooks/pre-commit @@ -0,0 +1,5 @@ +printf "[pre-commit hook] Updating branch reference in Jenkinsfile.test to allow self-testing... " +branch=$(git rev-parse --abbrev-ref HEAD) +sed -i "s/utils@.*'/utils@${branch}'/" Jenkinsfile +git update-index --add Jenkinsfile +printf "done.\n" |