summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-13 15:29:40 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-13 15:29:40 +0000
commit6a1e323ae88101cfed3fc4591d6e6a3bd8c05f02 (patch)
treeaa880bae3e4afae00bb769ec6f59ef0ffca72f45
parent7d2b70a95feb3425c14bb2b7aa7338a444de489a (diff)
appveyor.yml: add MinGW build
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--appveyor.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 42fe9e7fdd..dc4d43e44a 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -11,6 +11,8 @@ environment:
zlib_version: "1.2.11"
matrix:
- vs: "120"
+ - MSYS2_ARCH: x86_64
+ MSYSTEM: MINGW64
matrix:
fast_finish: true
notifications:
@@ -93,3 +95,42 @@ for:
- nmake -l "TESTOPTS=-v -q" test-basic
- nmake -l "TESTOPTS=-q -j%JOBS%" test-all RUBY_FORCE_TEST_JIT=1
- nmake -l test-spec
+-
+ matrix:
+ only:
+ - MSYS2_ARCH: x86_64
+ MSYSTEM: MINGW64
+ install:
+ - ver
+ - chcp
+ - SET BITS=%Platform:x86=32%
+ - SET BITS=%BITS:x=%
+ - SET ruby_path=C:\Ruby%ruby_version:-x86=%
+ - SET PATH=\usr\local\bin;%ruby_path%\bin;%PATH%;C:\msys64\%MSYSTEM%\bin;C:\msys64\usr\bin
+ - ruby --version
+ - mkdir \usr\local\bin
+ - mkdir \usr\local\include
+ - mkdir \usr\local\lib
+ build_script:
+ - cd %APPVEYOR_BUILD_FOLDER%
+ - |
+ bash -ex -c "
+ pacman --noconfirm --sync --refresh --refresh pacman
+ pacman --noconfirm --sync --refresh --refresh --sysupgrade --sysupgrade
+
+ pacman --noconfirm -S --needed base-devel"
+ - |
+ sh -c "ln -s $(which autom4te) /usr/bin/autom4te"
+ sh -c "ln -s $(which m4) /usr/bin/m4"
+ sh -c "ln -s /c/msys64/usr/share/autoconf /usr/share/autoconf"
+ sh -c "$(which autoconf)"
+ - |
+ sh -c "$(pwd)/configure --disable-install-doc --prefix=/usr/local"
+ sh -c "ln -sf $(which mingw32-make) /c/msys64/usr/bin/make.exe"
+ sh -c "mingw32-make -j$(nproc)"
+ sh -c "mingw32-make -j$(nproc) install"
+ test_script:
+ - |
+ sh -c "mingw32-make test"
+ sh -c "mingw32-make -j$(nproc) test-all RUBY_FORCE_TEST_JIT=1"
+ sh -c "mingw32-make -j$(nproc) test-spec MSPECOPT=-j"