Skip to content

Commit

Permalink
Run the system tests on RHEL6 pull request builds.
Browse files Browse the repository at this point in the history
Refs #10870
  • Loading branch information
martyngigg committed Feb 12, 2015
1 parent 2c47c9e commit 316d13e
Showing 1 changed file with 25 additions and 11 deletions.
36 changes: 25 additions & 11 deletions Code/Mantid/Build/Jenkins/buildscript
Expand Up @@ -64,6 +64,16 @@ if [ -z "$MANTID_DATA_STORE" ]; then
export MANTID_DATA_STORE=$(dirname $WORKSPACE)
fi

###############################################################################
# RHEL6 setup steps - nodes must have a "rhel6" label set (in lowercase)
###############################################################################
if [[ ${NODE_LABELS} == *rhel6* ]]; then
SCL_ON_RHEL6="scl enable mantidlibs"
ON_RHEL6=true
else
SCL_ON_RHEL6="eval"
fi

###############################################################################
# Check job requirements from the name
###############################################################################
Expand Down Expand Up @@ -103,16 +113,6 @@ if [[ "$BUILDPKG" == true ]]; then
fi
fi

###############################################################################
# RHEL6 setup steps - nodes must have a "rhel6" label set (in lowercase)
###############################################################################
if [[ ${NODE_LABELS} == *rhel6* ]]; then
SCL_ON_RHEL6="scl enable mantidlibs"
ON_RHEL6=true
else
SCL_ON_RHEL6="eval"
fi

###############################################################################
# Create the build directory if it doesn't exist
###############################################################################
Expand Down Expand Up @@ -169,7 +169,8 @@ $SCL_ON_RHEL6 "cmake --build . --target AllTests -- -j$BUILD_THREADS"
# Run the tests
###############################################################################
# Remove any Mantid.user.properties file
rm -f ~/.mantid/Mantid.user.properties
userprops=~/.mantid/Mantid.user.properties
rm -f $userprops
$SCL_ON_RHEL6 "ctest -j$BUILD_THREADS --schedule-random --output-on-failure"

###############################################################################
Expand All @@ -196,3 +197,16 @@ if [[ "$BUILDPKG" == true ]]; then
$SCL_ON_RHEL6 "cpack --config CPackSourceConfig.cmake -D CPACK_PACKAGING_INSTALL_PREFIX="
fi
fi

###############################################################################
# Run the system tests on RHEL6 when doing a pull request build. Run
# from a package to have at least one Linux checks it install okay
###############################################################################
if [[ "${ON_RHEL6}" == true ]] && [[ ${JOB_NAME} == *pull_requests* ]]; then
PKGDIR=${WORKSPACE}/build
# Turn off usage reports and instrument downloading for the mantid call
# that creates the properties file
echo "UpdateInstrumentDefinitions.OnStartup = 0" > $userprops
echo "usagereports.enabled = 0" >> $userprops
python $WORKSPACE/Code/Mantid/Testing/SystemTests/scripts/InstallerTesting.py -o -d $PKGDIR
fi

0 comments on commit 316d13e

Please sign in to comment.