Git config ensuring that 'nimble check' is executed before each commit
This commit is contained in:
parent
f80cbf0ee2
commit
10a36f2b9f
|
@ -6,4 +6,5 @@ nimble.develop
|
|||
|
||||
# Track changes in the scripts folder
|
||||
!scripts/
|
||||
!scripts/*
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ function _add_project {
|
|||
--with-dependencies \
|
||||
"https://github.com/status-im/$PROJECT_NAME"
|
||||
|
||||
cp scripts/per-project.nimble.develop "$PROJECT_NAME/"
|
||||
cp scripts/per-project.nimble.develop "$PROJECT_NAME/nimble.develop"
|
||||
}
|
||||
|
||||
for p in $@
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo 'Creating a commit requires all Nimble checks to pass:'
|
||||
nimble check
|
|
@ -0,0 +1,9 @@
|
|||
[core]
|
||||
hooksPath = ../scripts/git-hooks
|
||||
|
||||
[url "git@github.com:"]
|
||||
insteadOf = https://github.com/
|
||||
|
||||
[url "git@github.com:"]
|
||||
insteadOf = https://www.github.com/
|
||||
|
Loading…
Reference in New Issue