summaryrefslogtreecommitdiffstats
path: root/ci/env.inc.sh
blob: ab2271f639f53cfab37f09e963a6ed93ebdb4d56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
# shellcheck disable=SC1090
# shellcheck disable=SC1091
if [[ -z "${INCLUDED_ENV_INC_SH:-}" ]]; then
  . ci/utils.inc.sh
  . ci/env-common.inc.sh

  OS="$(get_os)"
  export OS

  . "ci/env-${OS}.inc.sh"

  : "${MAKE_PARALLEL:=$CORES}"
  export MAKE_PARALLEL

  . ci/lib/install_functions.inc.sh


  : "${MAKE_PARALLEL:=$CORES}"
  export MAKE_PARALLEL

  : "${CTEST_PARALLEL:=$CORES}"
  export CTEST_PARALLEL

  : "${PARALLEL_TEST_PROCESSORS:=$CORES}"
  export PARALLEL_TEST_PROCESSORS

  export INCLUDED_ENV_INC_SH=1
fi