@@ -26,28 +26,22 @@ matrix:
26
26
- BUILD_TYPE="InstallScript"
27
27
OSX_PACKAGES="gcc@6 cmake"
28
28
GCC=6
29
- - &osx_allowed_failure
30
- os : osx
31
- env :
32
- - OSX_PACKAGES="gcc cmake"
33
- GCC=7
34
- OPENCOARRAYS_DEVELOPER=ON
35
29
- &ubuntu
36
30
os : linux
37
31
sudo : false
38
32
dist : trusty
39
33
env :
40
34
- GCC=6
41
35
cache :
42
- apt : false
36
+ apt : true
43
37
directories :
44
38
- " $CACHE"
45
39
addons :
46
40
apt :
47
- sources :
41
+ sources : &linuxsrcs
48
42
- ubuntu-toolchain-r-test
49
43
- george-edison55-precise-backports
50
- packages :
44
+ packages : &gcc6pkgs
51
45
- gcc-6
52
46
- gfortran-6
53
47
- g++-6
@@ -60,10 +54,8 @@ matrix:
60
54
- GCC=7
61
55
addons :
62
56
apt :
63
- sources :
64
- - ubuntu-toolchain-r-test
65
- - george-edison55-precise-backports
66
- packages :
57
+ sources : *linuxsrcs
58
+ packages : &gcc7pkgs
67
59
- gcc-7
68
60
- gfortran-7
69
61
- g++-7
@@ -75,11 +67,9 @@ matrix:
75
67
env :
76
68
- BUILD_TYPE="InstallScript"
77
69
GCC=6
78
- cache : false
79
70
addons :
80
71
apt :
81
- sources :
82
- - ubuntu-toolchain-r-test
72
+ sources : *linuxsrcs
83
73
packages :
84
74
- gcc-6
85
75
- gfortran-6
@@ -91,19 +81,10 @@ matrix:
91
81
OPENCOARRAYS_DEVELOPER=ON
92
82
addons :
93
83
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
104
86
105
87
allow_failures :
106
- - *osx_allowed_failure
107
88
- *linux_allowed_failure
108
89
109
90
before_install :
@@ -194,7 +175,7 @@ script:
194
175
if [[ ${BUILD_TYPE} == InstallScript ]]; then
195
176
./install.sh --yes-to-all -i "${HOME}/opencoarrays" -j 4 -f "$(type -P "${FC}")" -c "$(type -P "${CC}")" -C "$(type -P "${CXX}")"
196
177
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}
198
179
cd -
199
180
else
200
181
mkdir cmake-build || echo "Cannot mkdir cmake-build"
@@ -203,7 +184,7 @@ script:
203
184
cd cmake-build || echo 'cannot cd to cmake-build/'
204
185
cmake -DCMAKE_INSTALL_PREFIX:PATH="${HOME}/OpenCoarrays" -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" .. || echo "running cmake failed"
205
186
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}
207
188
make install
208
189
make uninstall
209
190
cd ..
0 commit comments