mirror of
https://github.com/status-im/nim-workplace.git
synced 2025-02-18 14:26:32 +00:00
Git config ensuring that 'nimble check' is executed before each commit
This commit is contained in:
parent
f80cbf0ee2
commit
10a36f2b9f
1
.gitignore
vendored
1
.gitignore
vendored
@ -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 $@
|
||||
|
4
scripts/git-hooks/pre-commit
Executable file
4
scripts/git-hooks/pre-commit
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo 'Creating a commit requires all Nimble checks to pass:'
|
||||
nimble check
|
9
workspace.gitconfig
Normal file
9
workspace.gitconfig
Normal file
@ -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…
x
Reference in New Issue
Block a user