Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further Azure #52

Merged
merged 7 commits into from May 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions azure-dkist-wheel.yaml
@@ -0,0 +1,20 @@
jobs:
- job: Upload_dkist_wheel
pool:
vmImage: Ubuntu 16.04

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'

- script: pip install --upgrade twine wheel
displayName: Install wheel requirements

- task: TwineAuthenticate@0
inputs:
artifactFeeds: 'dkist_pypi'

- script: 'python setup.py bdist_wheel --universal'

- script: 'twine upload -r dkist_pypi --config-file $(PYPIRC_PATH) dist/*whl'
30 changes: 13 additions & 17 deletions azure-pipelines.yml
Expand Up @@ -5,21 +5,17 @@ variables:
CI_BUILD_URL: "https://dev.azure.com/sunpy/sunpy/_build/results?buildId=$(Build.BuildId)"

jobs:
- template: azure-templates.yml
parameters:
name: Linux_36
os: linux
tox: py36 --
- template: azure-templates.yml
parameters:
name: Linux_36
os: linux
tox: py36 --

- template: azure-templates.yml
parameters:
name: Linux_37
os: linux
tox: py37 --

- template: azure-templates.yml
parameters:
name: Linux_37
os: linux
tox: py37 --

# - ${{ if eq(variables['Build.Reason'], 'Schedule') }}:
# - template: azure-templates.yml
# parameters:
# name: Linux_37_numpydev
# os: linux
# tox: py37-numpydev -- -n=2
# - ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master') }}:
- template: azure-dkist-wheel.yaml
3 changes: 1 addition & 2 deletions azure-templates.yml
Expand Up @@ -21,7 +21,7 @@ jobs:
- script: pip install --upgrade tox
displayName: install tox

- script: tox -e ${{ parameters.tox }} --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html
- script: tox -e ${{ parameters.tox }} --junitxml=junit/test-results.xml --cov dkist --cov-report=xml
displayName: run tox

- script: |
Expand All @@ -42,4 +42,3 @@ jobs:
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
4 changes: 2 additions & 2 deletions tox.ini
Expand Up @@ -12,9 +12,9 @@ deps =
git+https://github.com/Cadair/gwcs@dkist
git+https://github.com/sunpy/sunpy
git+https://github.com/sunpy/ndcube
commands = py{36,37}: pytest --cov=./dkist
commands = py{36,37}: pytest --cov=./dkist {posargs}

[testenv:build_docs]
basepython = python3.7
extras = docs
commands = sphinx-build docs docs/_build/html -W -b html
commands = sphinx-build docs docs/_build/html -W -b html {posargs}