mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-15 04:30:42 +02:00
ci: Set $HOST before setting fallback values
This commit is contained in:
parent
c838f2707a
commit
fa449b89b5
@ -6,11 +6,17 @@
|
|||||||
|
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
|
|
||||||
echo "Setting default values in env"
|
echo "Setting specific values in env"
|
||||||
|
if [ -n "${FILE_ENV}" ]; then
|
||||||
|
set -o errexit;
|
||||||
|
# shellcheck disable=SC1090
|
||||||
|
source "${FILE_ENV}"
|
||||||
|
fi
|
||||||
|
|
||||||
BASE_ROOT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../../ >/dev/null 2>&1 && pwd )
|
BASE_ROOT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../../ >/dev/null 2>&1 && pwd )
|
||||||
export BASE_ROOT_DIR
|
export BASE_ROOT_DIR
|
||||||
|
|
||||||
|
echo "Fallback to default values in env (if not yet set)"
|
||||||
# The number of parallel jobs to pass down to make and test_runner.py
|
# The number of parallel jobs to pass down to make and test_runner.py
|
||||||
export MAKEJOBS=${MAKEJOBS:--j4}
|
export MAKEJOBS=${MAKEJOBS:--j4}
|
||||||
# A folder for the ci system to put temporary files (ccache, datadirs for tests, ...)
|
# A folder for the ci system to put temporary files (ccache, datadirs for tests, ...)
|
||||||
@ -34,10 +40,3 @@ export GOAL=${GOAL:-install}
|
|||||||
export DIR_QA_ASSETS=${DIR_QA_ASSETS:-${BASE_BUILD_DIR}/qa-assets}
|
export DIR_QA_ASSETS=${DIR_QA_ASSETS:-${BASE_BUILD_DIR}/qa-assets}
|
||||||
export PATH=${BASE_ROOT_DIR}/ci/retry:$PATH
|
export PATH=${BASE_ROOT_DIR}/ci/retry:$PATH
|
||||||
export CI_RETRY_EXE=${CI_RETRY_EXE:retry}
|
export CI_RETRY_EXE=${CI_RETRY_EXE:retry}
|
||||||
|
|
||||||
echo "Setting specific values in env"
|
|
||||||
if [ -n "${FILE_ENV}" ]; then
|
|
||||||
set -o errexit;
|
|
||||||
# shellcheck disable=SC1090
|
|
||||||
source "${FILE_ENV}"
|
|
||||||
fi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user