Create GitHub releases
This commit is contained in:
parent
784a176d8a
commit
9a253df909
3 changed files with 133 additions and 48 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -7,5 +7,6 @@ tests/messages
|
||||||
tests/debuglog
|
tests/debuglog
|
||||||
test.log
|
test.log
|
||||||
gadgets/
|
gadgets/
|
||||||
|
package/
|
||||||
*.pyc
|
*.pyc
|
||||||
*.dSYM
|
*.dSYM
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@
|
||||||
# Add steps that build, run tests, deploy, and more:
|
# Add steps that build, run tests, deploy, and more:
|
||||||
# https://aka.ms/yaml
|
# https://aka.ms/yaml
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- stage: Build
|
||||||
jobs:
|
jobs:
|
||||||
- job: 'PythonLint'
|
- job: 'PythonLint'
|
||||||
displayName: "Python Lint"
|
displayName: "Python Lint"
|
||||||
|
|
@ -44,6 +46,14 @@ jobs:
|
||||||
env:
|
env:
|
||||||
VIMSPECTOR_MIMODE: gdb
|
VIMSPECTOR_MIMODE: gdb
|
||||||
|
|
||||||
|
- bash: ./make_package linux $(Build.SourceVersion)
|
||||||
|
displayName: 'Package'
|
||||||
|
|
||||||
|
- task: PublishPipelineArtifact@0
|
||||||
|
inputs:
|
||||||
|
artifactName: 'package-linux'
|
||||||
|
targetPath: 'package/linux-$(Build.SourceVersion).tar.gz'
|
||||||
|
|
||||||
- job: 'macos'
|
- job: 'macos'
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'macOS-10.13'
|
vmImage: 'macOS-10.13'
|
||||||
|
|
@ -61,3 +71,46 @@ jobs:
|
||||||
displayName: 'Run the tests'
|
displayName: 'Run the tests'
|
||||||
env:
|
env:
|
||||||
VIMSPECTOR_MIMODE: lldb
|
VIMSPECTOR_MIMODE: lldb
|
||||||
|
|
||||||
|
- bash: ./make_package macos $(Build.SourceVersion)
|
||||||
|
displayName: 'Package'
|
||||||
|
|
||||||
|
- task: PublishPipelineArtifact@0
|
||||||
|
inputs:
|
||||||
|
artifactName: 'package-macos'
|
||||||
|
targetPath: 'package/macos-$(Build.SourceVersion).tar.gz'
|
||||||
|
|
||||||
|
- stage: "Publish"
|
||||||
|
dependsOn:
|
||||||
|
- "Build"
|
||||||
|
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
||||||
|
jobs:
|
||||||
|
- job: 'Publish'
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-16.04'
|
||||||
|
steps:
|
||||||
|
- task: DownloadPipelineArtifact@0
|
||||||
|
inputs:
|
||||||
|
artifactName: 'package-linux'
|
||||||
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
|
- task: DownloadPipelineArtifact@0
|
||||||
|
inputs:
|
||||||
|
artifactName: 'package-macos'
|
||||||
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
|
- task: GitHubRelease@0
|
||||||
|
inputs:
|
||||||
|
gitHubConnection: puremourning
|
||||||
|
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
|
||||||
|
|
|
||||||
31
make_package
Executable file
31
make_package
Executable file
|
|
@ -0,0 +1,31 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -v
|
||||||
|
|
||||||
|
OS=$1
|
||||||
|
shift
|
||||||
|
|
||||||
|
VERSION=$1
|
||||||
|
shift
|
||||||
|
|
||||||
|
ROOT=$(pwd)
|
||||||
|
PACK=${ROOT}/package/${OS}
|
||||||
|
|
||||||
|
mkdir -p ${PACK}
|
||||||
|
pushd ${PACK}
|
||||||
|
mkdir -p vimspector/opt
|
||||||
|
mkdir -p vimspector/start
|
||||||
|
pushd vimspector/opt
|
||||||
|
for d in autoload plugin python3 vendor doc; do
|
||||||
|
if [[ -d ${ROOT}/$d ]]; then
|
||||||
|
cp -r ${ROOT}/$d .
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
mkdir -p gadgets
|
||||||
|
cp -r ${ROOT}/gadgets/${OS} gadgets/
|
||||||
|
popd
|
||||||
|
popd
|
||||||
|
|
||||||
|
cd ${ROOT}/package
|
||||||
|
tar zcvf ${OS}-${VERSION}.tar.gz ${OS}/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue