pywwt-old-branches/azure-pipelines.yml

76 строки
1.8 KiB
YAML
Исходник Обычный вид История

2020-03-31 13:12:45 +03:00
resources:
repositories:
- repository: OpenAstronomy
type: github
endpoint: WorldWideTelescope
name: OpenAstronomy/azure-pipelines-templates
ref: master
jobs:
2020-03-31 13:12:45 +03:00
- template: run-tox-env.yml@OpenAstronomy
parameters:
2020-03-31 13:12:45 +03:00
xvfb: true
coverage: codecov
libraries:
apt:
- libxkbcommon-x11-0
- libgl1-mesa-dev
envs:
- linux: codestyle
libraries: {}
coverage: 'false'
name: codestyle
2020-03-31 13:12:45 +03:00
- linux: py36-test
2020-04-03 17:56:00 +03:00
name: linux_py36_test
2020-03-31 13:12:45 +03:00
- linux: py37-test
2020-04-03 17:56:00 +03:00
name: linux_py37_test
2020-03-31 13:12:45 +03:00
- windows: py36-test
2020-04-03 17:56:00 +03:00
name: windows_py36_test
2020-03-31 13:12:45 +03:00
- windows: py37-test
2020-04-03 17:56:00 +03:00
name: windows_py37_test
2020-03-31 13:12:45 +03:00
# - macos: py36-test
2020-04-03 17:56:00 +03:00
# name: macos_py36_test
# - macos: py37-test
2020-04-03 17:56:00 +03:00
# name: macos_py37_test
2020-03-31 13:12:45 +03:00
- linux: py36-docs
2020-04-03 17:56:00 +03:00
name: linux_py36_docs
2020-03-31 13:12:45 +03:00
- windows: py37-docs
2020-04-03 17:56:00 +03:00
name: windows_py37_docs
2020-03-31 13:12:45 +03:00
- macos: py37-docs
2020-04-03 17:56:00 +03:00
name: macos_py37_test
- template: publish.yml@OpenAstronomy
parameters:
2020-04-03 17:55:33 +03:00
test_command: pytest -p no:warnings --pyargs pywwt
2020-04-03 17:56:00 +03:00
# Note that we don't include qt below in the test requirements as this can
# lead to segfaults since the publishing template doesn't handle virtual
# displays. However, we can make sure the publish step is only done if some
# of the main test configurations pass.
2020-04-03 18:56:38 +03:00
test_extras: test
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/v') }}:
pypi_connection_name : 'pypi_endpoint'
npm_connection_name : 'npm_endpoint'
targets:
- sdist
- wheels_universal
- npm
2020-04-03 17:56:00 +03:00
# We require the two main linux jobs to pass before we can do a release. We
# don't require the other jobs to pass since they can sometimes be flakey.
dependsOn:
- codestyle
2020-04-03 17:56:00 +03:00
- linux_py36_test
- linux_py37_test