Skip to content

Commit e3e4788

Browse files
Merge pull request #301 from StuartWheater/master
Updates to reflect changes to testthat
2 parents f1bcb11 + 772f706 commit e3e4788

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

azure-pipelines.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# /logs <- Where results of tests and lots are collated
1212
#
1313
# As of May 2020 this takes ~ 70 mins to run.
14+
# As of Nov 2020 this takes ~ 120 mins to run.
1415
#
1516
# The only things that should ever be changed are the repo branches in the resources.
1617
#
@@ -54,16 +55,22 @@ resources:
5455
#########################################################################################
5556
# When and under what condition to run the pipeline.
5657
schedules:
57-
- cron: "32 1 * * *"
58-
displayName: Nightly build
58+
- cron: "0 0 * * 0"
59+
displayName: Weekly build - master
5960
branches:
6061
include:
6162
- master
6263
always: true
64+
- cron: "0 2 * * 0"
65+
displayName: Nightly build - v6.2-dev
66+
branches:
67+
include:
68+
- v6.2-dev
69+
always: true
6370

6471
jobs:
6572
- job: build_and_run_tests
66-
timeoutInMinutes: 120
73+
timeoutInMinutes: 150
6774
pool:
6875
vmImage: 'Ubuntu 16.04'
6976

@@ -273,7 +280,7 @@ jobs:
273280
# display the test console output
274281
cat test_console_output_dsbase.txt
275282
276-
grep --quiet "Failed: 0" test_console_output_dsbase.txt
283+
grep --quiet " FAIL 0 " test_console_output_dsbase.txt
277284
278285
workingDirectory: $(Pipeline.Workspace)/dsBaseClient
279286
displayName: 'Code coverage and JUnit report output, with dsBase'
@@ -376,7 +383,7 @@ jobs:
376383
mv coveragelist.csv $(Pipeline.Workspace)/logs
377384
mv test_results.xml $(Pipeline.Workspace)/logs
378385
379-
grep --quiet "Failed: 0" test_console_output_dsdanger.txt
386+
grep --quiet " FAIL 0 " test_console_output_dsdanger.txt
380387
381388
workingDirectory: $(Pipeline.Workspace)/dsBaseClient
382389
displayName: 'Code coverage and JUnit report output, with dsBase and dsDanger'
@@ -423,7 +430,11 @@ jobs:
423430
424431
cat test_console_output_bug.txt
425432
426-
mv test_results_bug.xml $(Pipeline.Workspace)/logs
433+
if [ -e test_results_bug.xml ]; then
434+
mv test_results_bug.xml $(Pipeline.Workspace)/logs
435+
else
436+
touch $(Pipeline.Workspace)/logs/test_results_bug.xml
437+
fi
427438
428439
workingDirectory: $(Pipeline.Workspace)/dsBaseClient
429440
displayName: 'Bug report output'

0 commit comments

Comments
 (0)