forked from astropy/astropy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
50 lines (44 loc) · 1.61 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
# NOTE: this Azure configuration is used only for building the sdist and wheels.
# It uses the OpenAstronomy azure template described in detail at
# https://openastronomy-azure-pipelines.readthedocs.io/en/latest/
resources:
repositories:
- repository: OpenAstronomy
type: github
endpoint: astropy
name: OpenAstronomy/azure-pipelines-templates
ref: master
# NOTE: for now we only use Azure Pipelines on v* branches and tags
# for building the source and wheel distributions. If you want to
# make changes to this configuration via a pull request, you can
# *temporarily* change the branches include trigger to just '*'
trigger:
branches:
include:
- 'v*'
tags:
include:
- 'v*'
pr:
branches:
include:
- 'v*'
jobs:
- template: publish.yml@OpenAstronomy
parameters:
# FIXME: we exclude the test_data_out_of_range test since it
# currently fails, see https://github.com/astropy/astropy/issues/10409
test_command: pytest -p no:warnings --astropy-header -k "not test_data_out_of_range" --pyargs astropy
test_extras: test
# NOTE: for v* tags, we auto-release to PyPI. See
# https://openastronomy-azure-pipelines.readthedocs.io/en/latest/publish.html
# for information on how to configure things on the Azure Pipelines side
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/v') }}:
pypi_connection_name : 'pypi_endpoint'
targets:
- sdist
- wheels_cp3[678]*linux_i686
- wheels_cp3[678]*linux_x86_64
- wheels_cp3[678]*macosx_x86_64
- wheels_cp3[678]*win32
- wheels_cp3[678]*win_amd64