Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Add build step to azure (#982)
Browse files Browse the repository at this point in the history
  • Loading branch information
emthompson-usgs authored Aug 15, 2022
1 parent 02ae670 commit 12ecfea
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 22 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ schedules:
always: true

trigger:
- main
branches:
include:
- main
tags:
include:
- 'release-*'

name: $(Date:yyyyMMdd)$(Rev:.r)

Expand Down Expand Up @@ -146,3 +151,19 @@ jobs:
bash <(curl -s https://codecov.io/bash)
displayName: Get coverage (Linux)
condition: eq( variables['Agent.OS'], 'Linux' )
- bash: |
source activate gmprocess
pip install -e .[build]
python -m build
python3 -m twine upload dist/*
displayName: Build (mac/linux)
condition: and(succeeded(), ne( variables['Agent.OS'], 'Windows_NT' ), contains(variables['Build.SourceBranch'], 'refs/tags/release-'))
- script: |
call activate gmprocess
pip install -e .[build]
python -m build
python3 -m twine upload dist/*
displayName: Build (Windows)
condition: and(succeeded(), eq( variables['Agent.OS'], 'Windows_NT' ), contains(variables['Build.SourceBranch'], 'refs/tags/release-'))
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ doc =
sphinx-copybutton
sphinx-inline-tabs
sphinxcontrib-programoutput
build =
build
twine

[options.packages.find]
where = src
Expand Down

0 comments on commit 12ecfea

Please sign in to comment.