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

Commit

Permalink
Switch to Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Apr 5, 2020
1 parent 0cd5413 commit 25e9015
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 75 deletions.
35 changes: 0 additions & 35 deletions .appveyor.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .travis.yml

This file was deleted.

39 changes: 39 additions & 0 deletions azure-pipelines-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: 12.x

- task: UsePythonVersion@0
inputs:
versionSpec: '2.7'
architecture: 'x64'

- bash: |
npm install
npm run dist
displayName: Build

- bash: |
BRANCH=$(Build.SourceBranch)
TAG=${BRANCH:10}
echo "##vso[task.setvariable variable=Name;isOutput=true]$TAG"
displayName: Get Tag Name
name: Tag
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')

- task: GithubRelease@0
displayName: Create GitHub Release
condition: startsWith(variables['Tag.Name'], 'v')
inputs:
gitHubConnection: GitHub Yue
repositoryName: yue/wey
action: Edit
tagSource: auto
tag: $(Tag.Name)
title: Wey $(Tag.name)
releaseNotesSource: input
releaseNotes: (placeholder)
assets: '*.zip'
assetUploadMode: replace
isDraft: true
addChangelog: false
30 changes: 30 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
trigger:
- refs/heads/*
- refs/pull/*/merge
- refs/tags/*

jobs:
- job: windows_build
displayName: 'Build for Windows'
pool:
vmImage: 'VS2017-Win2016'
steps:
- template: azure-pipelines-template.yml

- job: macos_build
displayName: 'Build for macOS'
pool:
vmImage: 'macOS-10.14'
steps:
- template: azure-pipelines-template.yml

- job: linux_build
displayName: 'Build for Linux'
pool:
vmImage: 'ubuntu-18.04'
steps:
- script: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev
displayName: Install dependencies
- template: azure-pipelines-template.yml

0 comments on commit 25e9015

Please sign in to comment.