forked from NeurodataWithoutBorders/matnwb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
40 lines (32 loc) · 897 Bytes
/
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
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: InstallMATLAB@0
# default to latest version of Matlab installed
#inputs:
# release: R2020a
- checkout: self
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
architecture: 'x64'
- script: |
python -m pip install --upgrade pip
pip install pynwb
displayName: 'Install PyNWB'
- task: RunMATLABCommand@0
inputs:
command: "results = assertSuccess(nwbtest); assert(~isempty(results), 'No tests ran');"
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: testResults.xml
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: coverage.xml
- script: |
bash <(curl -s https://codecov.io/bash)
displayName: 'Upload coverage to codecov'