mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Initial cut at azure pipline build
This commit is contained in:
parent
4f1ae96025
commit
4a6b9f7b42
2 changed files with 39 additions and 10 deletions
13
.ci/azure-build.yml
Normal file
13
.ci/azure-build.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
steps:
|
||||
- script: |
|
||||
export CXX=${CXX_COMPILER}
|
||||
export CC=${C_COMPILER}
|
||||
# Use TRAVIS_TAG if defined, or the short commit SHA otherwise
|
||||
export VERSION=${TRAVIS_TAG:-$(git rev-parse --short HEAD)}
|
||||
- script: |
|
||||
./.ci/script.sh
|
||||
sed -i -e "s/VERSION_NAME_VALUE/${VERSION}/g" ./.ci/bintray-release.json || true
|
||||
cp ./.ci/bintray-release.json .
|
||||
- script: |
|
||||
./.ci/install.sh
|
||||
export PATH=/usr/local/bin:${PATH}
|
|
@ -4,16 +4,32 @@
|
|||
# https://aka.ms/yaml
|
||||
|
||||
trigger:
|
||||
- master
|
||||
- master
|
||||
- releases/*
|
||||
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
pr:
|
||||
- master
|
||||
- releases/*
|
||||
|
||||
steps:
|
||||
- script: echo Hello, world!
|
||||
displayName: 'Run a one-line script'
|
||||
stages:
|
||||
- stage: Build
|
||||
jobs:
|
||||
- job: Linux
|
||||
pool:
|
||||
vmImage: 'ubuntu-16.04'
|
||||
|
||||
- script: |
|
||||
echo Add other tasks to build, test, and deploy your project.
|
||||
echo See https://aka.ms/yaml
|
||||
displayName: 'Run a multi-line script'
|
||||
steps:
|
||||
- template: .ci/azure-build.yml
|
||||
|
||||
- job: macOS
|
||||
pool:
|
||||
vmImage: 'macOS-10.12'
|
||||
steps:
|
||||
- template: .ci/azure-build.yml
|
||||
|
||||
- job: Windows
|
||||
pool:
|
||||
vmImage: 'vs2017-win2016'
|
||||
|
||||
steps:
|
||||
- template: .ci/azure-build.yml
|
Loading…
Reference in a new issue