You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2019/04/04 02:19:55 UTC
[qpid-proton] branch master updated: PROTON-2025: Build definition
for CI with Azure Pipelines
This is an automated email from the ASF dual-hosted git repository.
astitcher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/master by this push:
new 34a68dc PROTON-2025: Build definition for CI with Azure Pipelines
34a68dc is described below
commit 34a68dc7f5d03d29b128e569d3ff55a44ad1afd6
Author: Andrew Stitcher <as...@bigfoot.com>
AuthorDate: Wed Sep 12 20:24:30 2018 +0000
PROTON-2025: Build definition for CI with Azure Pipelines
---
azure-pipelines/azure-pipelines.yml | 53 +++++++++++++++++++++++++++++++++++++
azure-pipelines/steps.yml | 30 +++++++++++++++++++++
2 files changed, 83 insertions(+)
diff --git a/azure-pipelines/azure-pipelines.yml b/azure-pipelines/azure-pipelines.yml
new file mode 100644
index 0000000..fd50140
--- /dev/null
+++ b/azure-pipelines/azure-pipelines.yml
@@ -0,0 +1,53 @@
+# Azure Pipeline build definition
+#
+# Use RelWithDebInfo build configuration so that linking on Windows doesn't require the
+# usually absent python debug dll.
+#
+# Set up the Windows python version to be the x86 (32 bit) version so that we can use the
+# default cmake generator which uses the 32 bit compiler
+#
+variables:
+ Config: 'RelWithDebInfo'
+ PythonVersion: '3.6'
+ PythonArch: 'x64'
+ CmakeConfigExtraArgs: ''
+
+jobs:
+- job: Windows
+ variables:
+ PythonArch: 'x86'
+ CmakeConfigExtraArgs: '-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake'
+ pool:
+ vmImage: 'vs2017-win2016'
+ steps:
+ - task: UsePythonVersion@0
+ inputs:
+ versionSpec: $(PythonVersion)
+ addToPath: true
+ architecture: $(PythonArch)
+ - script: |
+ choco install swig
+ vcpkg install jsoncpp
+ vcpkg integrate install
+ name: InstallExtraStuff
+ - template: steps.yml
+- job: Ubuntu
+ pool:
+ vmImage: 'ubuntu-16.04'
+ steps:
+ - script: sudo apt-get install -y swig libpython3-dev libsasl2-dev libjsoncpp-dev
+ name: InstallExtraStuff
+ - template: steps.yml
+- job: MacOS
+ variables:
+ PKG_CONFIG_PATH: '/usr/local/opt/openssl@1.1/lib/pkgconfig'
+ CmakeConfigExtraArgs: '-DPYTHON_EXECUTABLE=/usr/local/bin/python3 -DBUILD_RUBY=no'
+ pool:
+ vmImage: 'macOS-10.13'
+ steps:
+ - script: |
+ brew update
+ brew install libuv swig pkgconfig openssl@1.1 jsoncpp
+ brew upgrade python@3 python@2
+ name: InstallExtraStuff
+ - template: steps.yml
diff --git a/azure-pipelines/steps.yml b/azure-pipelines/steps.yml
new file mode 100644
index 0000000..9f88e4b
--- /dev/null
+++ b/azure-pipelines/steps.yml
@@ -0,0 +1,30 @@
+steps:
+- task: UsePythonVersion@0
+ enabled: false
+ inputs:
+ versionSpec: $(PythonVersion)
+ addToPath: true
+ architecture: $(PythonArch)
+- task: CMake@1
+ name: CMakeConfigure
+ inputs:
+ workingDirectory: 'BLD'
+ cmakeArgs: $(Build.SourcesDirectory) $(CmakeConfigExtraArgs)
+- task: CMake@1
+ name: CMakeBuild
+ inputs:
+ workingDirectory: 'BLD'
+ cmakeArgs: --build . --config $(Config)
+- script: ctest -C $(Config) -V -T Test --no-compress-output
+ displayName: CMakeTest
+ workingDirectory: 'BLD'
+ continueOnError: true
+- task: PublishTestResults@2
+ inputs:
+ testRunTitle: Test run on $(Agent.OS) build $(Build.BuildNumber)
+ testResultsFormat: cTest
+ testResultsFiles: '**/Test.xml'
+ buildConfiguration: $(Config)
+- bash: env | sort
+ displayName: Environment
+ condition: always()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org