Skip to content

Commit

Permalink
Testing deployment to Github Releases using Azure
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Blumberg committed Jan 18, 2019
1 parent 2cba2e8 commit ed2fe2d
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ steps:
sudo python setup.py -q install
sudo pytest -v
sudo mv examples/data/14061619.png examples/data/14061619_mac.png
sudo pyinstaller runsharp/SHARPpy-osx.spec --noconsole --onefile
sudo chmod 777 dist/SHARPpy.app
displayName: "Installing code and running tests (macOS)"
condition: eq( variables['Agent.OS'], 'Darwin')

Expand All @@ -88,7 +91,35 @@ steps:
displayName: "Installing code and running tests (Windows)"
condition: eq( variables['Agent.OS'], 'Windows_NT')

# Copy files to the artifacts directory
# Copy SHARPpy Binaries to staging directory
- task: CopyFiles@2
name: Copy SHARPpy binaries to artifact staging directory
inputs:
contents: |
dist/*.exe
dist/*.app
targetFolder: $(Build.ArtifactStagingDirectory)

# Deploy to Github Releases
- task: GithubRelease@0
inputs:
gitHubConnection: releases
repositoryName: SHARPpy
action: 'create' # Options: create, edit, discard
target: '$(build.sourceVersion)' # Required when action == create || action == edit
tagSource: 'auto' # Required when action == create. Options: auto, manual
#tag: # Required when action == edit || action == discard || tagSource == manual
#title: # Optional
#releaseNotesSource: 'file' # Optional. Options: file, input
#releaseNotesFile: # Optional
#releaseNotes: # Optional
assets: '$(build.artifactStagingDirectory)/*' # Optional
assetUploadMode: 'delete' # Optional. Options: delete, replace
isDraft: true # Optional
isPreRelease: true # Optional
addChangeLog: true # Optional

# Copy GUI screenshots to the artifacts directory
- task: CopyFiles@2
inputs:
contents: examples/data/14*.png
Expand All @@ -100,6 +131,8 @@ steps:
artifactName: 'testgui'
targetPath: $(Build.ArtifactStagingDirectory)



# Old code trying to change the macOS display resolution (didn't work)
# sudo brew cask install xquartz
# sudo python ci/screen.py
Expand Down

0 comments on commit ed2fe2d

Please sign in to comment.