Commit 3746004b29c8ae4b82463ddb69fc069695f87e81
Build using 75% of cores in pre/post commit hooks
Author: xaizek
Author date (UTC): 2022-04-06 16:32
Committer name: xaizek
Committer date (UTC): 2022-04-06 16:32
Parent(s): 74d9cea78e26788e0d6b4a90d162756e082444df
Signing key: 99DC5E4DB05F6BE2
Tree: d1f7cc050994c4dd74ff5eae7303ef21a1472299
File scripts/git-hook-post-commit changed (mode: 100755) (index 9af7dff..aa52103) |
... |
... |
if [ -n "$DIRTY" ]; then |
40 |
40 |
trap pop_stashed EXIT |
trap pop_stashed EXIT |
41 |
41 |
fi |
fi |
42 |
42 |
|
|
43 |
|
nice ionice make --jobs 6 coverage |
|
|
43 |
|
nice ionice make --jobs $(( `nproc` * 3 / 4 )) coverage |
44 |
44 |
RESULT="$?" |
RESULT="$?" |
45 |
45 |
|
|
46 |
46 |
# stashed changes (if any) are automatically restored by EXIT trap handler |
# stashed changes (if any) are automatically restored by EXIT trap handler |
File scripts/git-hook-pre-commit changed (mode: 100755) (index 1515b3c..3a51e27) |
... |
... |
if ! git diff --quiet HEAD; then |
97 |
97 |
# run build using staged changes only |
# run build using staged changes only |
98 |
98 |
# use release build as with its optimization level compiler is able to issue |
# use release build as with its optimization level compiler is able to issue |
99 |
99 |
# more warnings |
# more warnings |
100 |
|
nice ionice make --jobs 6 check release |
|
|
100 |
|
nice ionice make --jobs $(( `nproc` * 3 / 4 )) check release |
101 |
101 |
RESULT="$?" |
RESULT="$?" |
102 |
102 |
else |
else |
103 |
103 |
RESULT="0" |
RESULT="0" |