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()
791
791
792
792
include (cmake/AddInstallationScriptTest.cmake )
793
793
add_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 39
39
40
40
{
41
41
mpif90 --version && mpif90 -show
42
- } || true
42
+ } || echo " No mpif90 "
43
43
{
44
44
mpicc --version && mpicc -show
45
- } || true
45
+ } || echo " No mpicc"
46
+
47
+ type -a cmake || echo " CMake not installed"
46
48
cmake --version || true
47
49
48
50
echo " Done."
Original file line number Diff line number Diff line change 43
43
44
44
{
45
45
mpif90 --version && mpif90 -show
46
- } || true
46
+ } || echo " No mpif90 "
47
47
{
48
48
mpicc --version && mpicc -show
49
- } || true
49
+ } || echo " No mpicc"
50
+
51
+ type -a cmake || echo " CMake not installed"
50
52
cmake --version || true
51
53
52
54
echo " Done."
Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ trap '__caf_err_report "${FUNCNAME:-.}" ${LINENO}' ERR
23
23
echo " Performing Travis-CI script phase for the OpenCoarrays installation script..."
24
24
25
25
./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} "
28
30
else
29
31
ctest --output-on-failure --schedule-random --repeat-until-fail " ${NREPEAT:- 5} "
30
32
fi
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ trap '__caf_err_report "${FUNCNAME:-.}" ${LINENO}' ERR
23
23
echo " Performing Travis-CI script phase for the OpenCoarrays direct cmake build..."
24
24
25
25
mkdir cmake-build || echo " Cannot mkdir cmake-build"
26
+ # shellcheck disable=SC2153
26
27
for BUILD_TYPE in ${BUILD_TYPES} ; do
27
28
rm -rf cmake-build/* || true
28
29
(
You can’t perform that action at this time.
0 commit comments