Skip to content

Commit 792c19b

Browse files
committedFeb 14, 2018
nightlies: also submit build errors to dash
1 parent 543e4f0 commit 792c19b

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed
 

‎debian/rules

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,10 @@ override_dh_auto_configure:
220220
dh_auto_configure -- $(CMAKE_OPTS)
221221

222222
override_dh_auto_build-arch:
223-
ninja -C $(QGIS_BUILDDIR)
223+
ninja -C $(QGIS_BUILDDIR) $(DEB_TEST_TARGET)Build || \
224+
cat $(QGIS_BUILDDIR)/Testing/Temporary/LastBuild_$$(head -1 $(QGIS_BUILDDIR)/Testing/TAG).log || \
225+
ninja -C $(QGIS_BUILDDIR) $(DEB_TEST_TARGET)Submit || \
226+
false
224227

225228
override_dh_auto_build-indep:
226229
ninja -C $(QGIS_BUILDDIR) apidoc
@@ -229,14 +232,18 @@ override_dh_auto_test: test-stamp
229232

230233
test-stamp:
231234
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
232-
# Code to run the package test suite - and ignore the outcome for now
235+
# Code to run the package test suite
236+
rm -f $(QGIS_BUILDDIR)/.error
233237
mkdir -p debian/tmp/locale/
234238
localedef -f UTF-8 -i en_US ./debian/tmp/locale/en_US.UTF-8/
235-
-LOCPATH=$(CURDIR)/debian/tmp/locale/ \
239+
LOCPATH=$(CURDIR)/debian/tmp/locale/ \
236240
LC_ALL=en_US.UTF-8 \
237241
LD_LIBRARY_PATH=$(CURDIR)/$(QGIS_BUILDDIR)/output/lib:$(LD_LIBRARY_PATH) \
238242
PATH=/usr/sbin:$(PATH) \
239-
$(TESTMAKE) -C $(QGIS_BUILDDIR) $(DEB_TEST_TARGET)
243+
$(TESTMAKE) -C $(QGIS_BUILDDIR) $(DEB_TEST_TARGET)Test || touch $(QGIS_BUILDDIR)/.error
244+
$(TESTMAKE) -C $(QGIS_BUILDDIR) $(DEB_TEST_TARGET)Submit
245+
# but ignore the outcome for now
246+
# ! [ -f $(QGIS_BUILDDIR)/.error ]
240247
else
241248
@echo Skipping tests.
242249
endif

‎ms-windows/osgeo4w/package-nightly.cmd

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,14 @@ if errorlevel 1 (echo clean failed & goto error)
205205
:skipclean
206206
if exist ..\skipbuild (echo skip build & goto skipbuild)
207207
echo ALL_BUILD: %DATE% %TIME%
208-
cmake --build %BUILDDIR% --config %BUILDCONF%
209-
if errorlevel 1 cmake --build %BUILDDIR% --config %BUILDCONF%
210-
if errorlevel 1 (echo build failed twice & goto error)
208+
cmake --build %BUILDDIR% --target NightlyBuild --config %BUILDCONF%
209+
if errorlevel 1 cmake --build %BUILDDIR% --target NightlyBuild --config %BUILDCONF%
210+
if errorlevel 1 (
211+
cmake --build %BUILDDIR% --target NightlySubmit --config %BUILDCONF%
212+
if errorlevel 1 echo SUBMITTING BUILD ERRORS WAS NOT SUCCESSFUL.
213+
echo build failed twice
214+
goto error
215+
)
211216

212217
:skipbuild
213218
if exist ..\skiptests goto skiptests
@@ -230,8 +235,10 @@ for %%g IN (%GRASS_VERSIONS%) do (
230235
PATH %path%;%BUILDDIR%\output\plugins
231236
set QT_PLUGIN_PATH=%BUILDDIR%\output\plugins;%OSGEO4W_ROOT%\apps\qt5\plugins
232237

233-
cmake --build %BUILDDIR% --target Nightly --config %BUILDCONF%
238+
cmake --build %BUILDDIR% --target NightlyTest --config %BUILDCONF%
234239
if errorlevel 1 echo TESTS WERE NOT SUCCESSFUL.
240+
cmake --build %BUILDDIR% --target NightlySubmit --config %BUILDCONF%
241+
if errorlevel 1 echo TEST SUBMISSION WAS NOT SUCCESSFUL.
235242

236243
set TEMP=%oldtemp%
237244
set TMP=%oldtmp%

0 commit comments

Comments
 (0)
Please sign in to comment.