aboutsummaryrefslogtreecommitdiff
path: root/dev/ci/ci-common.sh
diff options
context:
space:
mode:
authorMaxime Dénès2017-12-21 10:34:49 +0100
committerMaxime Dénès2017-12-21 10:34:49 +0100
commit2ded75b9b51aa9607cf2a123d6f8ae42a141e97a (patch)
tree4fa380ed2022c565d1688f8bdbc424577f34f64d /dev/ci/ci-common.sh
parente2d1c676b23a335b4fb8a528c99dfca2b82a1a39 (diff)
parentcf04e49c5426da3ea684f8e545652803106af0c2 (diff)
Merge PR #6474: Fix CI with parallel make (messed up dependencies)
Diffstat (limited to 'dev/ci/ci-common.sh')
-rw-r--r--dev/ci/ci-common.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/dev/ci/ci-common.sh b/dev/ci/ci-common.sh
index 1bfdf7dfbe..23131c94c6 100644
--- a/dev/ci/ci-common.sh
+++ b/dev/ci/ci-common.sh
@@ -53,6 +53,18 @@ checkout_mathcomp()
git_checkout ${mathcomp_CI_BRANCH} ${mathcomp_CI_GITURL} ${1}
}
+make()
+{
+ # +x: add x only if defined
+ if [ -z "${MAKEFLAGS+x}" ] && [ -n "${NJOBS}" ];
+ then
+ # Not submake and parallel make requested
+ command make -j "$NJOBS" "$@"
+ else
+ command make "$@"
+ fi
+}
+
# this installs just the ssreflect library of math-comp
install_ssreflect()
{