Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Add CentOS-specific configuration to the test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kj4ezj committed Aug 29, 2019
1 parent 868de85 commit 59f84a4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/long-running-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ set -eo pipefail
echo "+++ $([[ "$BUILDKITE" == 'true' ]] && echo ':evergreen_tree: ')Configuring Environment"
GIT_ROOT="$(dirname $BASH_SOURCE[0])/.."
[[ -z "$TEST" ]] && export TEST=$1
if [[ "$(uname)" == 'Linux' ]]; then
. /etc/os-release
if [[ "$ID" == 'centos' ]]; then
[[ -f /opt/rh/devtoolset-8/enable ]] && source /opt/rh/devtoolset-8/enable
[[ -f /opt/rh/rh-python36/enable ]] && source /opt/rh/rh-python36/enable
[[ -z "$(which ccache)" && -f /usr/lib64/ccache ]] && export "PATH=/usr/lib64/ccache:$PATH"
fi
fi
cd $GIT_ROOT/build
# mongoDB
if [[ ! -z "$(pgrep mongod)" ]]; then
Expand Down
8 changes: 8 additions & 0 deletions scripts/parallel-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ set -eo pipefail
echo "+++ $([[ "$BUILDKITE" == 'true' ]] && echo ':evergreen_tree: ')Configuring Environment"
[[ -z "$CPUS" ]] && export CPUS=$(getconf _NPROCESSORS_ONLN)
GIT_ROOT="$(dirname $BASH_SOURCE[0])/.."
if [[ "$(uname)" == 'Linux' ]]; then
. /etc/os-release
if [[ "$ID" == 'centos' ]]; then
[[ -f /opt/rh/devtoolset-8/enable ]] && source /opt/rh/devtoolset-8/enable
[[ -f /opt/rh/rh-python36/enable ]] && source /opt/rh/rh-python36/enable
[[ -z "$(which ccache)" && -f /usr/lib64/ccache ]] && export "PATH=/usr/lib64/ccache:$PATH"
fi
fi
cd $GIT_ROOT/build
# count tests
echo "+++ $([[ "$BUILDKITE" == 'true' ]] && echo ':microscope: ')Running Parallelizable Tests"
Expand Down
8 changes: 8 additions & 0 deletions scripts/serial-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ set -eo pipefail
echo "+++ $([[ "$BUILDKITE" == 'true' ]] && echo ':evergreen_tree: ')Configuring Environment"
GIT_ROOT="$(dirname $BASH_SOURCE[0])/.."
[[ -z "$TEST" ]] && export TEST=$1
if [[ "$(uname)" == 'Linux' ]]; then
. /etc/os-release
if [[ "$ID" == 'centos' ]]; then
[[ -f /opt/rh/devtoolset-8/enable ]] && source /opt/rh/devtoolset-8/enable
[[ -f /opt/rh/rh-python36/enable ]] && source /opt/rh/rh-python36/enable
[[ -z "$(which ccache)" && -f /usr/lib64/ccache ]] && export "PATH=/usr/lib64/ccache:$PATH"
fi
fi
cd $GIT_ROOT/build
# mongoDB
if [[ ! -z "$(pgrep mongod)" ]]; then
Expand Down

0 comments on commit 59f84a4

Please sign in to comment.