-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathazure-pipelines.yml
62 lines (46 loc) · 1.47 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
# Pints functional testing command line utility.
#
# This file is part of Pints Functional Testing.
# Copyright (c) 2017-2019, University of Oxford.
# For licensing information, see the LICENSE file distributed with the Pints
# functional testing software package.
#
trigger: none
pr: none
schedules:
- cron: "0 * * * *"
displayName: Hourly next functional test
branches:
include:
- main
always: true
jobs:
- job: RunEverything
displayName: Main job to run all steps
variables:
funkDir: /home/pints/functional-testing
pool:
name: 'pints-skip'
timeoutInMinutes: 150 # 2.5 hour failsafe on entire job
steps:
- checkout: none # don't actually check out source - we work on an existing directory
- script: git pull
workingDirectory: $(funkDir)
displayName: Update pints@skip functional-testing repo
- script: ./funk run --next --plot -r 10
workingDirectory: $(funkDir)
displayName: Run next test
timeoutInMinutes: 150 # 2.5 hour failsafe on script
- script: ./funk analyse --last
workingDirectory: $(funkDir)
displayName: Analyse test
failOnStderr: true # this is what reports a failure, due to printing to stderr in __main__.py
- script: ./funk report
workingDirectory: $(funkDir)
displayName: Create report
condition: always() # run even if the test fails
- script: ./funk commit
workingDirectory: $(funkDir)
displayName: Commit results
condition: always() # run even if the test fails