summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-27 12:30:24 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-27 12:30:24 +0000
commit019864b4a5d14f25f5880cda996306908837d7ee (patch)
tree058bffe464747bda8826dc6326105491fe795a1b
parentc2ee33898b21af45e9dad89942772c00d3ffc819 (diff)
downloadruby-019864b4a5d14f25f5880cda996306908837d7ee.tar.gz
Test Bundler examples and bundled gems tests with Azure Pipeline.
* They are invoked on Linux and macOS environment. * Try to build with vs2017. But it's only binary build. https://dev.azure.com/rubylang/ruby/ [Feature #15181][ruby-core:89222] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--azure-pipelines.yml134
1 files changed, 134 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644
index 0000000000..6dc4dd1db4
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,134 @@
+jobs:
+- job: Linux
+ pool:
+ vmImage: 'ubuntu-16.04'
+ strategy:
+ matrix:
+ bundled_gems:
+ task: test-bundled-gems
+ bundler:
+ task: test-bundler
+ steps:
+ - task: UseRubyVersion@0
+ inputs:
+ versionSpec: '2.5.1'
+ - script: sudo apt update -qy && sudo apt-get build-dep ruby2.3
+ - script: |
+ autoconf
+ ./configure
+ make
+ displayName: 'make'
+ - script: |
+ TRAVIS=1 make $(task)
+ displayName: "test"
+
+- job: macOS
+ pool:
+ vmImage: 'macos-10.13'
+ strategy:
+ matrix:
+# test:
+# task: test test-all
+# spec:
+# task: test-spec
+ bundled_gems:
+ task: test-bundled-gems
+ bundler:
+ task: test-bundler
+ steps:
+ - script: brew update && brew install autoconf bison openssl
+ - script: |
+ autoconf
+ ./configure --with-openssl-dir=/usr/local/opt/openssl
+ make
+ displayName: 'make'
+ - script: |
+ TRAVIS=1 make $(task)
+ displayName: "test"
+
+# - job: vs2015
+# pool:
+# vmImage: "vs2015-win2012r2"
+# strategy:
+# matrix:
+# test:
+# task: test test-all
+# spec:
+# task: test-spec
+# bundled_gems:
+# task: test-bundled-gems
+# bundler:
+# task: test-bundler
+# steps:
+# - script: vcpkg --triplet x64-windows install openssl zlib
+# - script: |
+# call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
+# cinst winflexbison
+# win32/configure.bat --without-ext=+,dbm,gdbm,readline --enable-bundled-libffi --with-opt-dir=C:/vcpkg/installed/x64-windows
+# displayName: 'configure'
+# - script: |
+# call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
+# set YACC=win_bison
+# nmake up
+# nmake
+# set TRAVIS=1
+# nmake $(task)
+# displayName: "nmake"
+
+- job: vs2017
+ pool:
+ vmImage: 'vs2017-win2016'
+# strategy:
+# matrix:
+# test:
+# task: test test-all
+# spec:
+# task: test-spec
+# bundled_gems:
+# task: test-bundled-gems
+# bundler:
+# task: test-bundler
+ steps:
+ - script: vcpkg --triplet x64-windows install openssl zlib
+ - script: |
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
+ cinst winflexbison
+ win32/configure.bat --without-ext=+,dbm,gdbm,readline --enable-bundled-libffi --with-opt-dir=C:/vcpkg/installed/x64-windows
+ displayName: 'configure'
+ - script: |
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
+ set YACC=win_bison
+ nmake up
+ nmake
+# set TRAVIS=1
+# nmake $(task)
+ displayName: "nmake"
+
+# - job: vs2019
+# pool:
+# vmImage: "windows-2019"
+# strategy:
+# matrix:
+# test:
+# task: test test-all
+# spec:
+# task: test-spec
+# bundled_gems:
+# task: test-bundled-gems
+# bundler:
+# task: test-bundler
+# steps:
+# - script: vcpkg --triplet x64-windows install openssl zlib
+# - script: |
+# call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvars64.bat"
+# cinst winflexbison
+# win32/configure.bat --without-ext=+,dbm,gdbm,readline --enable-bundled-libffi --with-opt-dir=C:/vcpkg/installed/x64-windows
+# displayName: 'configure'
+# - script: |
+# call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvars64.bat"
+# set YACC=win_bison
+# nmake up
+# nmake
+# set TRAVIS=1
+# nmake $(task)
+# displayName: "nmake"