Package relases
This commit is contained in:
parent
bde0d5fae3
commit
3f7f1b5fad
2 changed files with 110 additions and 53 deletions
|
|
@ -3,61 +3,117 @@
|
|||
# Add steps that build, run tests, deploy, and more:
|
||||
# https://aka.ms/yaml
|
||||
|
||||
jobs:
|
||||
- job: 'PythonLint'
|
||||
displayName: "Python Lint"
|
||||
pool:
|
||||
vmImage: 'ubuntu-16.04'
|
||||
container: 'puremourning/vimspector:test'
|
||||
steps:
|
||||
- bash: pip3 install -r dev_requirements.txt
|
||||
displayName: "Install requirements"
|
||||
stages:
|
||||
- displayName: Lint
|
||||
jobs:
|
||||
- job: 'PythonLint'
|
||||
displayName: "Python Lint"
|
||||
pool:
|
||||
vmImage: 'ubuntu-16.04'
|
||||
container: 'puremourning/vimspector:test'
|
||||
steps:
|
||||
- bash: pip3 install -r dev_requirements.txt
|
||||
displayName: "Install requirements"
|
||||
|
||||
- bash: $HOME/.local/bin/flake8 python3/
|
||||
displayName: "Run flake8"
|
||||
- bash: $HOME/.local/bin/flake8 python3/
|
||||
displayName: "Run flake8"
|
||||
|
||||
- job: 'Vimscript'
|
||||
displayName: "Vimscript Lint"
|
||||
pool:
|
||||
vmImage: 'ubuntu-16.04'
|
||||
container: 'puremourning/vimspector:test'
|
||||
steps:
|
||||
- bash: pip3 install -r dev_requirements.txt
|
||||
displayName: "Install requirements"
|
||||
- job: 'Vimscript'
|
||||
displayName: "Vimscript Lint"
|
||||
pool:
|
||||
vmImage: 'ubuntu-16.04'
|
||||
container: 'puremourning/vimspector:test'
|
||||
steps:
|
||||
- bash: pip3 install -r dev_requirements.txt
|
||||
displayName: "Install requirements"
|
||||
|
||||
- bash: $HOME/.local/bin/vint autoload/ plugin/
|
||||
displayName: "Run vint"
|
||||
- bash: $HOME/.local/bin/vint autoload/ plugin/
|
||||
displayName: "Run vint"
|
||||
|
||||
- job: 'linux'
|
||||
pool:
|
||||
vmImage: 'ubuntu-16.04'
|
||||
container: 'puremourning/vimspector:test'
|
||||
steps:
|
||||
- bash: python3 install_gadget.py
|
||||
displayName: 'Install gadgets'
|
||||
- displayName: Build
|
||||
jobs:
|
||||
- job: 'linux'
|
||||
pool:
|
||||
vmImage: 'ubuntu-16.04'
|
||||
container: 'puremourning/vimspector:test'
|
||||
steps:
|
||||
- bash: python3 install_gadget.py
|
||||
displayName: 'Install gadgets'
|
||||
|
||||
- bash: vim --version
|
||||
displayName: 'Print vim version information'
|
||||
- bash: vim --version
|
||||
displayName: 'Print vim version information'
|
||||
|
||||
- bash: ./run_tests
|
||||
displayName: 'Run the tests'
|
||||
env:
|
||||
VIMSPECTOR_MIMODE: gdb
|
||||
- bash: ./run_tests
|
||||
displayName: 'Run the tests'
|
||||
env:
|
||||
VIMSPECTOR_MIMODE: gdb
|
||||
|
||||
- job: 'macos'
|
||||
pool:
|
||||
vmImage: 'macOS-10.13'
|
||||
steps:
|
||||
- bash: brew install macvim
|
||||
displayName: 'Install vim'
|
||||
- bash: ./make_package linux $(Build.SourceVersion)
|
||||
displayName: 'Package'
|
||||
|
||||
- bash: python3 install_gadget.py
|
||||
displayName: 'Install gadgets'
|
||||
- task: PublishPipeineArtefacts@0
|
||||
inputs:
|
||||
artifactName: 'package-linux'
|
||||
targetPath: 'package/linux-$(Build.SourceVersion).tar.gz'
|
||||
|
||||
- bash: vim --version
|
||||
displayName: 'Print vim version information'
|
||||
- job: 'macos'
|
||||
pool:
|
||||
vmImage: 'macOS-10.13'
|
||||
steps:
|
||||
- bash: brew install macvim
|
||||
displayName: 'Install vim'
|
||||
|
||||
- bash: ./run_tests
|
||||
displayName: 'Run the tests'
|
||||
env:
|
||||
VIMSPECTOR_MIMODE: lldb
|
||||
- bash: python3 install_gadget.py
|
||||
displayName: 'Install gadgets'
|
||||
|
||||
- bash: vim --version
|
||||
displayName: 'Print vim version information'
|
||||
|
||||
- bash: ./run_tests
|
||||
displayName: 'Run the tests'
|
||||
env:
|
||||
VIMSPECTOR_MIMODE: lldb
|
||||
|
||||
- bash: ./make_package macos $(Build.SourceVersion)
|
||||
displayName: 'Package'
|
||||
|
||||
- task: PublishPipeineArtefacts@0
|
||||
inputs:
|
||||
artifactName: 'package-macos'
|
||||
targetPath: 'package/macos-$(Build.SourceVersion).tar.gz'
|
||||
|
||||
- displayName: "Publish"
|
||||
dependsOn:
|
||||
- "Build"
|
||||
- "Lint"
|
||||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/azure-release'))
|
||||
jobs:
|
||||
- job: 'Publish'
|
||||
pool:
|
||||
vmImage: 'ubuntu-16.04'
|
||||
steps:
|
||||
- task: DownloadPipelineArtifact@0
|
||||
inputs:
|
||||
artifactName: 'package-linux'
|
||||
targetPath: $(System.ArtifactStagingDirectory)
|
||||
- task: DownloadPipelineArtifact@0
|
||||
inputs:
|
||||
artifactName: 'package-macos'
|
||||
targetPath: $(System.ArtifactStagingDirectory)
|
||||
- task: GitHubRelease@0
|
||||
inputs:
|
||||
gitHubConnection: "puremourning (1)"
|
||||
repositoryName: '$(Build.Repository.Name)'
|
||||
action: 'create' # Options: create, edit, delete
|
||||
target: '$(Build.SourceVersion)' # Required when action == Create || Action == Edit
|
||||
tagSource: 'manual' # Required when action == Create# Options: auto, manual
|
||||
tag: "$(Build.BuildId)"
|
||||
#title: # Optional
|
||||
#releaseNotesSource: 'file' # Optional. Options: file, input
|
||||
#releaseNotesFile: # Optional
|
||||
#releaseNotes: # Optional
|
||||
#assets: '$(Build.ArtifactStagingDirectory)/*' # Optional
|
||||
#assetUploadMode: 'delete' # Optional. Options: delete, replace
|
||||
#isDraft: false # Optional
|
||||
isPreRelease: true # Optional
|
||||
#addChangeLog: true # Optional
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue