2019-03-16 19:26:44 +03:00
|
|
|
pr: none # comment out this line if you need to test this file on PR
|
2019-05-22 21:14:54 +03:00
|
|
|
trigger:
|
|
|
|
- master
|
2019-02-27 15:30:24 +03:00
|
|
|
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:
|
2019-06-04 02:33:03 +03:00
|
|
|
versionSpec: '2.6.2'
|
2019-04-10 17:42:18 +03:00
|
|
|
- script: |
|
|
|
|
set -x
|
2019-04-10 17:47:18 +03:00
|
|
|
sudo sed /etc/apt/sources.list -e "s/^# deb-src/deb-src/g" -i
|
|
|
|
sudo apt-get update
|
2019-04-10 17:42:18 +03:00
|
|
|
sudo apt-get build-dep ruby2.3
|
2019-04-10 17:56:17 +03:00
|
|
|
displayName: "Install dependencies"
|
2019-02-28 15:19:08 +03:00
|
|
|
- checkout: self
|
2019-07-14 14:17:03 +03:00
|
|
|
fetchDepth: 20
|
2019-02-27 15:30:24 +03:00
|
|
|
- script: |
|
|
|
|
autoconf
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
displayName: 'make'
|
|
|
|
- script: |
|
2019-04-14 18:13:49 +03:00
|
|
|
make $(task) TRAVIS=1 TEST_BUNDLED_GEMS_ALLOW_FAILURES=minitest
|
2019-02-27 15:30:24 +03:00
|
|
|
displayName: "test"
|
2019-04-03 15:48:02 +03:00
|
|
|
continueOnError: true # test-bundler is failing on Linux. TODO: fix it and remove this line.
|
2019-02-27 15:30:24 +03:00
|
|
|
|
|
|
|
- job: macOS
|
|
|
|
pool:
|
|
|
|
vmImage: 'macos-10.13'
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
bundled_gems:
|
|
|
|
task: test-bundled-gems
|
|
|
|
steps:
|
2019-07-30 15:15:10 +03:00
|
|
|
- script: brew install autoconf bison openssl
|
2019-04-10 17:56:17 +03:00
|
|
|
displayName: "Install dependencies"
|
2019-02-28 15:19:08 +03:00
|
|
|
- checkout: self
|
2019-07-15 07:56:32 +03:00
|
|
|
fetchDepth: 20
|
2019-02-27 15:30:24 +03:00
|
|
|
- script: |
|
|
|
|
autoconf
|
|
|
|
./configure --with-openssl-dir=/usr/local/opt/openssl
|
|
|
|
make
|
|
|
|
displayName: 'make'
|
|
|
|
- script: |
|
2019-04-14 18:13:49 +03:00
|
|
|
make $(task) TEST_BUNDLED_GEMS_ALLOW_FAILURES=minitest
|
2019-02-27 15:30:24 +03:00
|
|
|
displayName: "test"
|
2019-06-18 15:22:06 +03:00
|
|
|
continueOnError: true # test-bundler is failing on macOS. TODO: fix it and remove this line.
|
2019-02-27 15:30:24 +03:00
|
|
|
|
|
|
|
# - 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:
|
2019-03-01 16:16:29 +03:00
|
|
|
# - script: vcpkg --triplet x64-windows install openssl readline zlib
|
2019-02-27 15:30:24 +03:00
|
|
|
# - script: |
|
|
|
|
# call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
|
|
|
|
# cinst winflexbison
|
2019-03-01 16:16:29 +03:00
|
|
|
# win32/configure.bat --without-ext=+,dbm,gdbm --enable-bundled-libffi --with-opt-dir=C:/vcpkg/installed/x64-windows
|
2019-02-27 15:30:24 +03:00
|
|
|
# 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:
|
2019-03-21 08:30:27 +03:00
|
|
|
# FIXME: Refactor this. Note that %errorlevel% does not work in for loop.
|
|
|
|
- script: |
|
2019-03-29 03:49:35 +03:00
|
|
|
vcpkg --triplet x64-windows install %dependencies% || (
|
|
|
|
sleep 4 && vcpkg --triplet x64-windows install %dependencies%
|
|
|
|
) || (
|
|
|
|
sleep 25 && vcpkg --triplet x64-windows install %dependencies%
|
|
|
|
)
|
2019-03-21 08:30:27 +03:00
|
|
|
env:
|
|
|
|
dependencies: openssl readline zlib
|
2019-04-10 17:56:17 +03:00
|
|
|
displayName: "Install dependencies"
|
2019-05-26 22:19:59 +03:00
|
|
|
timeoutInMinutes: 20
|
2019-05-26 16:29:30 +03:00
|
|
|
continueOnError: true # unstable. TODO: somehow use VM having these dependencies beforehand, and remove this `continueOnError`
|
2019-02-28 15:19:08 +03:00
|
|
|
- checkout: self
|
2019-07-15 07:56:32 +03:00
|
|
|
fetchDepth: 20
|
2019-02-27 15:30:24 +03:00
|
|
|
- script: |
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
|
|
|
cinst winflexbison
|
2019-03-01 16:16:29 +03:00
|
|
|
win32/configure.bat --without-ext=+,dbm,gdbm --enable-bundled-libffi --with-opt-dir=C:/vcpkg/installed/x64-windows
|
2019-02-27 15:30:24 +03:00
|
|
|
displayName: 'configure'
|
2019-05-26 16:29:30 +03:00
|
|
|
continueOnError: true # "Install dependencies" is continueOnError
|
2019-02-27 15:30:24 +03:00
|
|
|
- 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"
|
2019-05-26 16:29:30 +03:00
|
|
|
continueOnError: true # "Install dependencies" is continueOnError
|
2019-02-27 15:30:24 +03:00
|
|
|
|
2019-03-01 11:46:07 +03:00
|
|
|
- job: vs2019
|
|
|
|
pool:
|
|
|
|
vmImage: "windows-2019"
|
2019-02-27 15:30:24 +03:00
|
|
|
# strategy:
|
|
|
|
# matrix:
|
|
|
|
# test:
|
|
|
|
# task: test test-all
|
|
|
|
# spec:
|
|
|
|
# task: test-spec
|
|
|
|
# bundled_gems:
|
|
|
|
# task: test-bundled-gems
|
|
|
|
# bundler:
|
|
|
|
# task: test-bundler
|
2019-03-01 11:46:07 +03:00
|
|
|
steps:
|
2019-03-01 16:16:29 +03:00
|
|
|
# - script: vcpkg --triplet x64-windows install openssl readline zlib
|
2019-03-03 16:35:25 +03:00
|
|
|
- checkout: self
|
2019-07-15 07:56:32 +03:00
|
|
|
fetchDepth: 20
|
2019-03-01 11:46:07 +03:00
|
|
|
- script: |
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvars64.bat"
|
|
|
|
cinst winflexbison
|
2019-03-01 16:16:29 +03:00
|
|
|
win32/configure.bat --without-ext=+,dbm,gdbm --enable-bundled-libffi --with-opt-dir=C:/vcpkg/installed/x64-windows
|
2019-03-01 11:46:07 +03:00
|
|
|
displayName: 'configure'
|
2019-04-03 14:16:47 +03:00
|
|
|
continueOnError: true # this started to fail after the vs2019 launch. TODO: fix it and remove this line.
|
2019-03-01 11:46:07 +03:00
|
|
|
- script: |
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvars64.bat"
|
|
|
|
set YACC=win_bison
|
|
|
|
nmake up
|
|
|
|
nmake
|
2019-02-27 15:30:24 +03:00
|
|
|
# set TRAVIS=1
|
|
|
|
# nmake $(task)
|
2019-03-01 11:46:07 +03:00
|
|
|
displayName: "nmake"
|
2019-04-03 14:16:47 +03:00
|
|
|
continueOnError: true # TODO: make 'configure' functional and remove this line.
|