forked from sunpy/ndcube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
84 lines (73 loc) · 1.98 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
name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr)
variables:
CI_NAME: Azure Pipelines
CI_BUILD_ID: $(Build.BuildId)
CI_BUILD_URL: "https://dev.azure.com/sunpy/ndcube/_build/results?buildId=$(Build.BuildId)"
CIBW_BUILD: cp36-* cp37-* cp38-*
CIBW_SKIP: "*-win32 *-manylinux1_i686"
resources:
repositories:
- repository: OpenAstronomy
type: github
endpoint: sunpy
name: OpenAstronomy/azure-pipelines-templates
ref: master
trigger:
branches:
include:
- '*'
exclude:
- '*backport*'
tags:
include:
- 'v*'
exclude:
- '*dev*'
- '*pre*'
- '*post*'
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build
branches:
include:
- master
- 1.3
always: false
jobs:
- template: run-tox-env.yml@OpenAstronomy
parameters:
submodules: false
coverage: codecov
envs:
- macos: py37
name: py37_test_macos
- windows: py38
name: py38_test_windows
- linux: py38
name: py38_test_linux
- linux: py38-devdeps
name: py38_test_devdeps
- linux: codestyle
name: codestyle
# On branches which aren't master, and not Pull Requests, build the wheels but only upload them on tags
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
- template: publish.yml@OpenAstronomy
parameters:
# Only Upload to PyPI on tags
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/') }}:
pypi_connection_name : 'PyPI'
# Upload to artifacts on master only
${{ if eq(variables['Build.SourceBranchName'], 'master') }}:
artifact_project : 'ndcube'
artifact_feed : 'ndcube'
remove_local_scheme: true
test_extras: 'test'
test_command: 'pytest -p no:warnings --doctest-rst -m "not figure" --pyargs ndcube'
submodules: false
targets:
- wheels_universal
- sdist
dependsOn:
- py37_test_macos
- py38_test_windows
- py38_test_linux