File tree Expand file tree Collapse file tree 5 files changed +23
-6
lines changed Expand file tree Collapse file tree 5 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -791,3 +791,13 @@ endif()
791791
792792include (cmake/AddInstallationScriptTest.cmake )
793793add_installation_script_test(installation-scripts.sh src/tests/installation/)
794+
795+ # Lint the Travis-CI scripts
796+ set (TRAVIS_SCRIPTS
797+ install .linux.sh
798+ install .osx.sh
799+ test -script.InstallScript.sh
800+ test -script.cmake.sh)
801+ foreach (SCRIPT ${TRAVIS_SCRIPTS} )
802+ lint_script("${CMAKE_SOURCE_DIR} /developer-scripts/travis" ${SCRIPT} )
803+ endforeach ()
Original file line number Diff line number Diff line change 3939
4040{
4141 mpif90 --version && mpif90 -show
42- } || true
42+ } || echo " No mpif90 "
4343{
4444 mpicc --version && mpicc -show
45- } || true
45+ } || echo " No mpicc"
46+
47+ type -a cmake || echo " CMake not installed"
4648cmake --version || true
4749
4850echo " Done."
Original file line number Diff line number Diff line change 4343
4444{
4545 mpif90 --version && mpif90 -show
46- } || true
46+ } || echo " No mpif90 "
4747{
4848 mpicc --version && mpicc -show
49- } || true
49+ } || echo " No mpicc"
50+
51+ type -a cmake || echo " CMake not installed"
5052cmake --version || true
5153
5254echo " Done."
Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ trap '__caf_err_report "${FUNCNAME:-.}" ${LINENO}' ERR
2323echo " Performing Travis-CI script phase for the OpenCoarrays installation script..."
2424
2525./install.sh --yes-to-all -i " ${HOME} /opencoarrays" -j 4 -f " $( type -P " ${FC} " ) " -c " $( type -P " ${CC} " ) " -C " $( type -P " ${CXX} " ) "
26- if [[ -x " prerequisites/installations/cmake/*/bin/ctest" ]] ; then
27- " prerequisites/installations/cmake/*/bin/ctest" --output-on-failure --schedule-random --repeat-until-fail " ${NREPEAT:- 5} "
26+ CTEST_LOC=(prerequisites/installations/cmake/* /bin/ctest)
27+ INSTALLER_CTEST=" ${CTEST_LOC[${#CTEST_LOC[@]} -1]}"
28+ if [[ -x " ${INSTALLER_CTEST} " ]] ; then
29+ " ${INSTALLER_CTEST} " --output-on-failure --schedule-random --repeat-until-fail " ${NREPEAT:- 5} "
2830else
2931 ctest --output-on-failure --schedule-random --repeat-until-fail " ${NREPEAT:- 5} "
3032fi
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ trap '__caf_err_report "${FUNCNAME:-.}" ${LINENO}' ERR
2323echo " Performing Travis-CI script phase for the OpenCoarrays direct cmake build..."
2424
2525mkdir cmake-build || echo " Cannot mkdir cmake-build"
26+ # shellcheck disable=SC2153
2627for BUILD_TYPE in ${BUILD_TYPES} ; do
2728 rm -rf cmake-build/* || true
2829 (
You can’t perform that action at this time.
0 commit comments