diff --git a/.ci/azure-build.yml b/.ci/azure-build.yml new file mode 100644 index 00000000..db5f2ae5 --- /dev/null +++ b/.ci/azure-build.yml @@ -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} \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml index aa912913..d37f0586 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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 \ No newline at end of file