@@ -26,28 +26,22 @@ matrix:
2626 - BUILD_TYPE="InstallScript"
2727 OSX_PACKAGES="gcc@6 cmake"
2828 GCC=6
29- - &osx_allowed_failure
30- os : osx
31- env :
32- - OSX_PACKAGES="gcc cmake"
33- GCC=7
34- OPENCOARRAYS_DEVELOPER=ON
3529 - &ubuntu
3630 os : linux
3731 sudo : false
3832 dist : trusty
3933 env :
4034 - GCC=6
4135 cache :
42- apt : false
36+ apt : true
4337 directories :
4438 - " $CACHE"
4539 addons :
4640 apt :
47- sources :
41+ sources : &linuxsrcs
4842 - ubuntu-toolchain-r-test
4943 - george-edison55-precise-backports
50- packages :
44+ packages : &gcc6pkgs
5145 - gcc-6
5246 - gfortran-6
5347 - g++-6
@@ -60,10 +54,8 @@ matrix:
6054 - GCC=7
6155 addons :
6256 apt :
63- sources :
64- - ubuntu-toolchain-r-test
65- - george-edison55-precise-backports
66- packages :
57+ sources : *linuxsrcs
58+ packages : &gcc7pkgs
6759 - gcc-7
6860 - gfortran-7
6961 - g++-7
@@ -75,11 +67,9 @@ matrix:
7567 env :
7668 - BUILD_TYPE="InstallScript"
7769 GCC=6
78- cache : false
7970 addons :
8071 apt :
81- sources :
82- - ubuntu-toolchain-r-test
72+ sources : *linuxsrcs
8373 packages :
8474 - gcc-6
8575 - gfortran-6
@@ -91,19 +81,10 @@ matrix:
9181 OPENCOARRAYS_DEVELOPER=ON
9282 addons :
9383 apt :
94- sources :
95- - ubuntu-toolchain-r-test
96- - george-edison55-precise-backports
97- packages :
98- - gcc-7
99- - gfortran-7
100- - g++-7
101- - binutils
102- - cmake-data
103- - cmake
84+ sources : *linuxsrcs
85+ packages : *gcc7pkgs
10486
10587 allow_failures :
106- - *osx_allowed_failure
10788 - *linux_allowed_failure
10889
10990before_install :
@@ -194,7 +175,7 @@ script:
194175 if [[ ${BUILD_TYPE} == InstallScript ]]; then
195176 ./install.sh --yes-to-all -i "${HOME}/opencoarrays" -j 4 -f "$(type -P "${FC}")" -c "$(type -P "${CC}")" -C "$(type -P "${CXX}")"
196177 cd prerequisites/builds/opencoarrays/*
197- ../../../installations/cmake/*/bin/ctest --output-on-failure --schedule-random --repeat-until-fail 7
178+ ../../../installations/cmake/*/bin/ctest --output-on-failure --schedule-random --repeat-until-fail ${NREPEAT:-5}
198179 cd -
199180 else
200181 mkdir cmake-build || echo "Cannot mkdir cmake-build"
@@ -203,7 +184,7 @@ script:
203184 cd cmake-build || echo 'cannot cd to cmake-build/'
204185 cmake -DCMAKE_INSTALL_PREFIX:PATH="${HOME}/OpenCoarrays" -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" .. || echo "running cmake failed"
205186 make -j 4 || echo "running make failed"
206- ctest --output-on-failure --schedule-random --repeat-until-fail 7
187+ ctest --output-on-failure --schedule-random --repeat-until-fail ${NREPEAT:-5}
207188 make install
208189 make uninstall
209190 cd ..
0 commit comments