Initial cut at azure pipline build

This commit is contained in:
Joseph Donofry 2019-05-17 20:44:32 -04:00
parent 4f1ae96025
commit 4a6b9f7b42
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB
2 changed files with 39 additions and 10 deletions

13
.ci/azure-build.yml Normal file
View 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}

View file

@ -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