-
Notifications
You must be signed in to change notification settings - Fork 11
/
azure-pipelines.yml
85 lines (79 loc) · 2.32 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
jobs:
- job: Tests
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: |
echo "##vso[task.prependpath]$CONDA/bin"
conda env create -f .conda/environment.yml
displayName: Prepare conda
- script: |
source activate uarray
pip install git+https://github.com/Quansight-Labs/uarray.git
pip install git+https://github.com/Quansight-Labs/unumpy.git
pip install -e . --no-deps
displayName: Install package
- script: |
source activate uarray
pytest
displayName: Run tests
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/coverage.xml"
# - job: TestsMinimalEnv
# pool:
# vmImage: 'ubuntu-16.04'
# steps:
# - script: |
# echo "##vso[task.prependpath]$CONDA/bin"
# conda env create -f .conda/environment_minimal.yml
# displayName: Prepare conda
# - script: |
# source activate uarray_min
# pip install git+https://github.com/Quansight-Labs/uarray.git
# pip install git+https://github.com/Quansight-Labs/unumpy.git
# pip install -e . --no-deps
# displayName: Install package
# - script: |
# source activate uarray_min
# python setup.py build
# python setup.py install
# pytest
# displayName: Run tests
# - task: PublishCodeCoverageResults@1
# inputs:
# codeCoverageTool: Cobertura
# summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/coverage.xml"
- job: Docs
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: |
echo "##vso[task.prependpath]$CONDA/bin"
conda env create -f .conda/environment.yml
displayName: Prepare conda
- script: |
source activate uarray
pip install git+https://github.com/Quansight-Labs/uarray.git
pip install git+https://github.com/Quansight-Labs/unumpy.git
pip install -e . --no-deps
displayName: Install package
- script: |
source activate uarray
sphinx-build -W -b html docs/ _build/html
displayName: Build docs
- script: |
source activate uarray
doc8
displayName: Lint docs
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'Documentation'
targetPath: '$(System.DefaultWorkingDirectory)/_build/html'
trigger:
branches:
include:
- master
pr:
- master