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

Commit

Permalink
Add azure build script (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
bihanssen authored Oct 22, 2019
1 parent 6409287 commit e796e26
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
trigger:
- test-azure
- master
- release/*

jobs:
# Linux
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
- bash: |
pip install setuptools
pip install -r requirements-frozen.txt
python setup.py sdist
displayName: 'Build tar.gz with python 3.7'
- bash: |
pip install pyinstaller
pyinstaller nrfutil.spec
displayName: 'Build executable with python 3.7'
# macOS
- job: macOS
pool:
vmImage: 'macos-10.13'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
- bash: |
pip install setuptools
pip install -r requirements-frozen.txt
python setup.py sdist
displayName: 'Build tar.gz with python 3.7'
- bash: |
pip install pyinstaller
pyinstaller nrfutil.spec
displayName: 'Build executable with python 3.7'
# Windows
- job: Windows
strategy:
matrix:
win32:
python_arch: 'x86'
win64:
python_arch: 'x64'
pool:
vmImage: 'vs2017-win2016'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
architecture: '$(python_arch)'
- bash: |
pip install -r requirements-frozen.txt
python setup.py sdist
displayName: 'Build tar.gz with python 3.7'
- bash: |
pip install pyinstaller
pyinstaller nrfutil.spec
displayName: 'Build exe with python 3.7'
- bash: |
cp -R dist/*.tar.gz "$(Build.ArtifactStagingDirectory)"
cp -R dist/*.exe "$(Build.ArtifactStagingDirectory)"
condition: eq(variables['python_arch'], 'x64')
displayName: 'Copy artifacts'
- task: GitHubRelease@0
inputs:
gitHubConnection: 'waylandCI'
repositoryName: 'NordicSemiconductor/pc-nrfutil'
action: 'edit'
tagSource: 'Git tag'
tag: '$(Build.SourceBranchName)'
assetUploadMode: 'replace'
isDraft: 'true'
addChangeLog: 'false'
condition: ne(variables['Build.Reason'], 'PullRequest')

0 comments on commit e796e26

Please sign in to comment.