Skip to content
Snippets Groups Projects
Commit a7b2fdab authored by WHITFIELDRE email's avatar WHITFIELDRE email
Browse files

Remove RHEL6 from build scripts

parent 2ac6b722
No related branches found
No related tags found
No related merge requests found
...@@ -14,9 +14,6 @@ SCRIPT_DIR=$(dirname "$0") ...@@ -14,9 +14,6 @@ SCRIPT_DIR=$(dirname "$0")
############################################################################### ###############################################################################
# System discovery # System discovery
############################################################################### ###############################################################################
if [[ ${NODE_LABELS} == *rhel6* ]]; then
ON_RHEL6=true
fi
if [[ ${NODE_LABELS} == *rhel7* ]]; then if [[ ${NODE_LABELS} == *rhel7* ]]; then
ON_RHEL7=true ON_RHEL7=true
fi fi
...@@ -169,16 +166,6 @@ if [ -z "$MANTID_DATA_STORE" ]; then ...@@ -169,16 +166,6 @@ if [ -z "$MANTID_DATA_STORE" ]; then
export MANTID_DATA_STORE=$HOME/MantidExternalData export MANTID_DATA_STORE=$HOME/MantidExternalData
fi fi
###############################################################################
# RHEL6 setup steps - nodes must have a "rhel6" label set (in lowercase)
###############################################################################
DIST_FLAGS="-DSTATIC_LIBSTDCXX=OFF"
if [[ "${ON_RHEL6}" == true ]]; then
SCL_ON_RHEL6="scl enable mantidlibs34 devtoolset-2"
else
SCL_ON_RHEL6="eval"
fi
############################################################################### ###############################################################################
# Check if this is a Python 3 build and set CMake arguments. # Check if this is a Python 3 build and set CMake arguments.
############################################################################### ###############################################################################
...@@ -254,7 +241,7 @@ rm -f *.dmg *.rpm *.deb *.tar.gz ...@@ -254,7 +241,7 @@ rm -f *.dmg *.rpm *.deb *.tar.gz
############################################################################### ###############################################################################
# CMake configuration # CMake configuration
############################################################################### ###############################################################################
$SCL_ON_RHEL6 "${CMAKE_EXE} ${CMAKE_GENERATOR} -DCMAKE_BUILD_TYPE=${BUILD_CONFIG} -DENABLE_CPACK=ON -DMAKE_VATES=ON -DParaView_DIR=${PARAVIEW_DIR} -DMANTID_DATA_STORE=${MANTID_DATA_STORE} -DDOCS_HTML=ON -DENABLE_CONDA=ON -DENABLE_WORKBENCH=ON -DENABLE_FILE_LOGGING=OFF ${DIST_FLAGS} ${PACKAGINGVARS} ${CLANGTIDYVAR} .." ${CMAKE_EXE} ${CMAKE_GENERATOR} -DCMAKE_BUILD_TYPE=${BUILD_CONFIG} -DENABLE_CPACK=ON -DMAKE_VATES=ON -DParaView_DIR=${PARAVIEW_DIR} -DMANTID_DATA_STORE=${MANTID_DATA_STORE} -DDOCS_HTML=ON -DENABLE_CONDA=ON -DENABLE_WORKBENCH=ON -DENABLE_FILE_LOGGING=OFF ${DIST_FLAGS} ${PACKAGINGVARS} ${CLANGTIDYVAR} ..
############################################################################### ###############################################################################
# Coverity build should exit early # Coverity build should exit early
...@@ -277,8 +264,9 @@ fi ...@@ -277,8 +264,9 @@ fi
############################################################################### ###############################################################################
# Build step # Build step
############################################################################### ###############################################################################
$SCL_ON_RHEL6 "${CMAKE_EXE} --build . -- -j$BUILD_THREADS"
$SCL_ON_RHEL6 "${CMAKE_EXE} --build . --target AllTests -- -j$BUILD_THREADS" ${CMAKE_EXE} --build . -- -j$BUILD_THREADS
${CMAKE_EXE} --build . --target AllTests -- -j$BUILD_THREADS
############################################################################### ###############################################################################
# static analysis builds stop here # static analysis builds stop here
...@@ -294,7 +282,8 @@ fi ...@@ -294,7 +282,8 @@ fi
# Remove any Mantid.user.properties file # Remove any Mantid.user.properties file
userprops=~/.mantid/Mantid.user.properties userprops=~/.mantid/Mantid.user.properties
rm -f $userprops rm -f $userprops
$SCL_ON_RHEL6 "$CTEST_EXE -j$BUILD_THREADS --schedule-random --output-on-failure"
$CTEST_EXE -j$BUILD_THREADS --schedule-random --output-on-failure
############################################################################### ###############################################################################
# Run the documentation tests on Ubuntu when doing a pull request build but not for python 3. # Run the documentation tests on Ubuntu when doing a pull request build but not for python 3.
...@@ -306,8 +295,8 @@ if [[ ${ON_UBUNTU} == true ]] && [[ ${PRBUILD} == true ]]; then ...@@ -306,8 +295,8 @@ if [[ ${ON_UBUNTU} == true ]] && [[ ${PRBUILD} == true ]]; then
rm -rf $BUILD_DIR/docs/doctrees/* rm -rf $BUILD_DIR/docs/doctrees/*
fi fi
# Build HTML to verify that no referencing errors have crept in. # Build HTML to verify that no referencing errors have crept in.
$SCL_ON_RHEL6 "${CMAKE_EXE} --build . --target docs-html" ${CMAKE_EXE} --build . --target docs-html
$SCL_ON_RHEL6 "${CMAKE_EXE} --build . --target docs-test" ${CMAKE_EXE} --build . --target docs-test
fi fi
############################################################################### ###############################################################################
...@@ -320,18 +309,18 @@ if [[ ${BUILDPKG} == true ]]; then ...@@ -320,18 +309,18 @@ if [[ ${BUILDPKG} == true ]]; then
if [[ ${ON_MACOS} == true ]]; then if [[ ${ON_MACOS} == true ]]; then
export MANTIDPATH=$PWD/bin export MANTIDPATH=$PWD/bin
fi fi
$SCL_ON_RHEL6 "${CMAKE_EXE} --build . --target docs-qthelp" ${CMAKE_EXE} --build . --target docs-qthelp
$SCL_ON_RHEL6 "${CPACK_EXE}" ${CPACK_EXE}
# Source tarball on clean build (arbitrarily choose rhel7) # Source tarball on clean build (arbitrarily choose rhel7)
# Also, parcel up the documentation into a tar file that is easier to move around # Also, parcel up the documentation into a tar file that is easier to move around
# and labelled by the commit id it was built with. This assumes the Jenkins git plugin # and labelled by the commit id it was built with. This assumes the Jenkins git plugin
# has set the GIT_COMMIT environment variable # has set the GIT_COMMIT environment variable
if [[ ${CLEANBUILD} == true && ${ON_RHEL7} == true ]]; then if [[ ${CLEANBUILD} == true && ${ON_RHEL7} == true ]]; then
$SCL_ON_RHEL6 "${CMAKE_EXE} --build . --target docs-html" ${CMAKE_EXE} --build . --target docs-html
tar -cjf mantiddocs-g${GIT_COMMIT:0:7}.tar.bz2 --exclude='*.buildinfo' --exclude="MantidProject.q*" docs/html tar -cjf mantiddocs-g${GIT_COMMIT:0:7}.tar.bz2 --exclude='*.buildinfo' --exclude="MantidProject.q*" docs/html
# The ..._PREFIX argument avoids opt/Mantid directories at the top of the tree # The ..._PREFIX argument avoids opt/Mantid directories at the top of the tree
$SCL_ON_RHEL6 "${CPACK_EXE} --config CPackSourceConfig.cmake -D CPACK_PACKAGING_INSTALL_PREFIX=" ${CPACK_EXE} --config CPackSourceConfig.cmake -D CPACK_PACKAGING_INSTALL_PREFIX=
fi fi
fi fi
......
...@@ -38,16 +38,6 @@ if [ -z "$MANTID_DATA_STORE" ]; then ...@@ -38,16 +38,6 @@ if [ -z "$MANTID_DATA_STORE" ]; then
export MANTID_DATA_STORE=$HOME/MantidExternalData export MANTID_DATA_STORE=$HOME/MantidExternalData
fi fi
###############################################################################
# RHEL6 setup steps - nodes must have a "rhel6" label set (in lowercase)
###############################################################################
if [[ ${NODE_LABELS} == *rhel6* ]]; then
SCL_ON_RHEL6="scl enable mantidlibs34"
ON_RHEL6=true
else
SCL_ON_RHEL6="eval"
fi
############################################################################### ###############################################################################
# Create the build directory if it doesn't exist # Create the build directory if it doesn't exist
############################################################################### ###############################################################################
...@@ -59,12 +49,12 @@ cd $BUILD_DIR ...@@ -59,12 +49,12 @@ cd $BUILD_DIR
# CMake configuration. We only need a minimal configuration as we will actually # CMake configuration. We only need a minimal configuration as we will actually
# just run from the package # just run from the package
############################################################################### ###############################################################################
$SCL_ON_RHEL6 "${CMAKE_EXE} -DMANTID_DATA_STORE=${MANTID_DATA_STORE} .." ${CMAKE_EXE} -DMANTID_DATA_STORE=${MANTID_DATA_STORE} ..
############################################################################### ###############################################################################
# Build step # Build step
############################################################################### ###############################################################################
$SCL_ON_RHEL6 "${CMAKE_EXE} --build . -- StandardTestData" ${CMAKE_EXE} --build . -- StandardTestData
############################################################################### ###############################################################################
# Add tests from the examples available on the mantidproject wiki pages # Add tests from the examples available on the mantidproject wiki pages
...@@ -79,7 +69,7 @@ if [[ ${NODE_LABELS} == *ubuntu* ]]; then ...@@ -79,7 +69,7 @@ if [[ ${NODE_LABELS} == *ubuntu* ]]; then
ON_WT_PLATFORMS=true ON_WT_PLATFORMS=true
fi fi
if [[ "${ON_WT_PLATFORMS}" == true ]] && [[ ${JOB_NAME} == *wikitests* ]]; then if [[ "${ON_WT_PLATFORMS}" == true ]] && [[ ${JOB_NAME} == *wikitests* ]]; then
$SCL_ON_RHEL6 "python ${WORKSPACE}/tools/scripts/TestWikiPython.py -o ${WORKSPACE}/docs/source/mwTests" python ${WORKSPACE}/tools/scripts/TestWikiPython.py -o ${WORKSPACE}/docs/source/mwTests
fi fi
##################################################################################### #####################################################################################
......
...@@ -43,16 +43,6 @@ else ...@@ -43,16 +43,6 @@ else
fi fi
$CMAKE_EXE --version $CMAKE_EXE --version
###############################################################################
# RHEL6 setup steps - nodes must have a "rhel6" label set (in lowercase)
###############################################################################
if [[ ${NODE_LABELS} == *rhel6* ]]; then
SCL_ON_RHEL6="scl enable mantidlibs34"
ON_RHEL6=true
else
SCL_ON_RHEL6="eval"
fi
############################################################################### ###############################################################################
# Clean build if requested # Clean build if requested
############################################################################### ###############################################################################
...@@ -96,17 +86,17 @@ fi ...@@ -96,17 +86,17 @@ fi
# Need this because some strange control sequences when using default TERM=xterm # Need this because some strange control sequences when using default TERM=xterm
export TERM="linux" export TERM="linux"
PYLINT_FORMAT="parseable" PYLINT_FORMAT="parseable"
$SCL_ON_RHEL6 "${CMAKE_EXE} ${CMAKE_GENERATOR} -DCMAKE_BUILD_TYPE=${BUILD_CONFIG} -DENABLE_CPACK=OFF -DMAKE_VATES=OFF -DPYLINT_MSG_TEMPLATE=\"${PYLINT_FORMAT}\" -DPYLINT_NTHREADS=$BUILD_THREADS -DPYLINT_OUTPUT_DIR=${PYLINT_OUTPUT_DIR} .." ${CMAKE_EXE} ${CMAKE_GENERATOR} -DCMAKE_BUILD_TYPE=${BUILD_CONFIG} -DENABLE_CPACK=OFF -DMAKE_VATES=OFF -DPYLINT_MSG_TEMPLATE=\"${PYLINT_FORMAT}\" -DPYLINT_NTHREADS=$BUILD_THREADS -DPYLINT_OUTPUT_DIR=${PYLINT_OUTPUT_DIR} ..
############################################################################### ###############################################################################
# Build step (we only need the framework) # Build step (we only need the framework)
############################################################################### ###############################################################################
$SCL_ON_RHEL6 "$CMAKE_EXE --build . --target Framework -- -j$BUILD_THREADS" $CMAKE_EXE --build . --target Framework -- -j$BUILD_THREADS
############################################################################### ###############################################################################
# Run plint check # Run plint check
############################################################################### ###############################################################################
$SCL_ON_RHEL6 "$CMAKE_EXE --build . --target pylintcheck" $CMAKE_EXE --build . --target pylintcheck
############################################################################### ###############################################################################
# Archive the results # Archive the results
......
...@@ -34,16 +34,6 @@ if [ -z "$EXTRA_ARGS" ]; then ...@@ -34,16 +34,6 @@ if [ -z "$EXTRA_ARGS" ]; then
EXTRA_ARGS='' EXTRA_ARGS=''
fi fi
###############################################################################
# RHEL6 setup steps - nodes must have a "rhel6" label set (in lowercase)
###############################################################################
if [[ ${NODE_LABELS} == *rhel6* ]]; then
SCL_ON_RHEL6="scl enable mantidlibs34"
ON_RHEL6=true
else
SCL_ON_RHEL6="eval"
fi
############################################################################### ###############################################################################
# Create the build directory if it doesn't exist # Create the build directory if it doesn't exist
############################################################################### ###############################################################################
...@@ -55,16 +45,16 @@ cd $WORKSPACE/build ...@@ -55,16 +45,16 @@ cd $WORKSPACE/build
# We use the special flag that only creates the targets for the data # We use the special flag that only creates the targets for the data
############################################################################### ###############################################################################
if [[ ! -e $WORKSPACE/build/CMakeCache.txt ]]; then if [[ ! -e $WORKSPACE/build/CMakeCache.txt ]]; then
$SCL_ON_RHEL6 "${CMAKE_EXE} -DMANTID_DATA_STORE=${MANTID_DATA_STORE} -DDATA_TARGETS_ONLY=ON .." ${CMAKE_EXE} -DMANTID_DATA_STORE=${MANTID_DATA_STORE} -DDATA_TARGETS_ONLY=ON ..
else else
$SCL_ON_RHEL6 "${CMAKE_EXE} ." ${CMAKE_EXE} .
fi fi
############################################################################### ###############################################################################
# Build step # Build step
############################################################################### ###############################################################################
$SCL_ON_RHEL6 "${CMAKE_EXE} --build . -- StandardTestData" ${CMAKE_EXE} --build . -- StandardTestData
$SCL_ON_RHEL6 "${CMAKE_EXE} --build . -- SystemTestData" ${CMAKE_EXE} --build . -- SystemTestData
############################################################################### ###############################################################################
# Run the tests # Run the tests
......
#! /bin/sh
#
# This script will install all of the dependencies required to build
# Mantid on RHEL6. Obviously, you will need sudo install rights to run it.
#
sudo yum install boost-devel
sudo yum install gsl-devel
sudo yum install poco-devel
sudo yum install numpy
sudo yum install OpenCASCADE-devel
sudo yum install google-perftools-devel
sudo yum install muParser-devel
sudo yum install nexus
sudo yum install python-devel
#required for mantidplot
sudo yum install qt4-devel
sudo yum install qwt-devel
sudo yum install qwtplot3d-qt4-devel
sudo yum install sip-devel
sudo yum install qscintilla-devel
sudo yum install PyQt4-devel
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment