mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
appveyor.yml: get rid of msys sh as possible
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
438955efde
commit
5a149052fe
1 changed files with 25 additions and 20 deletions
45
appveyor.yml
45
appveyor.yml
|
@ -103,35 +103,40 @@ for:
|
||||||
install:
|
install:
|
||||||
- ver
|
- ver
|
||||||
- chcp
|
- chcp
|
||||||
|
- set /a JOBS=%NUMBER_OF_PROCESSORS%
|
||||||
- SET BITS=%Platform:x86=32%
|
- SET BITS=%Platform:x86=32%
|
||||||
- SET BITS=%BITS:x=%
|
- SET BITS=%BITS:x=%
|
||||||
- SET ruby_path=C:\Ruby%ruby_version:-x86=%
|
- 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
|
- SET PATH=\usr\local\bin;%ruby_path%\bin;%PATH%;C:\msys64\%MSYSTEM%\bin;C:\msys64\usr\bin
|
||||||
- ruby --version
|
- ruby --version
|
||||||
|
- mkdir \usr\bin
|
||||||
|
- mkdir \usr\share
|
||||||
- mkdir \usr\local\bin
|
- mkdir \usr\local\bin
|
||||||
- mkdir \usr\local\include
|
- mkdir \usr\local\include
|
||||||
- mkdir \usr\local\lib
|
- mkdir \usr\local\lib
|
||||||
build_script:
|
build_script:
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
- cd %APPVEYOR_BUILD_FOLDER%
|
||||||
- |
|
- pacman --noconfirm --sync --refresh --refresh pacman
|
||||||
bash -ex -c "
|
- pacman --noconfirm --sync --refresh --refresh --sysupgrade --sysupgrade
|
||||||
pacman --noconfirm --sync --refresh --refresh pacman
|
- pacman --noconfirm -S --needed base-devel mingw-w64-x86_64-gdbm
|
||||||
pacman --noconfirm --sync --refresh --refresh --sysupgrade --sysupgrade
|
- sh -c "ln -s $(which autom4te) /usr/bin/autom4te"
|
||||||
|
# mklink \usr\bin\autom4te c:\msys64\usr\bin\autom4te
|
||||||
pacman --noconfirm -S --needed base-devel mingw-w64-x86_64-gdbm"
|
- sh -c "ln -s $(which m4) /usr/bin/m4"
|
||||||
- |
|
# mklink \usr\bin\m4.exe c:\msys64\usr\bin\m4.exe
|
||||||
sh -c "ln -s $(which autom4te) /usr/bin/autom4te"
|
- sh -c "ln -s /c/msys64/usr/share/autoconf /usr/share/autoconf"
|
||||||
sh -c "ln -s $(which m4) /usr/bin/m4"
|
# mklink /d \usr\share\autoconf c:\msys64\usr\share\autoconf
|
||||||
sh -c "ln -s /c/msys64/usr/share/autoconf /usr/share/autoconf"
|
- sh -c autoconf
|
||||||
sh -c "$(which autoconf)"
|
- sh configure --disable-install-doc --prefix=/usr/local
|
||||||
- |
|
- sh -c "ln -sf $(which mingw32-make) /c/msys64/usr/bin/make.exe"
|
||||||
sh -c "$(pwd)/configure --disable-install-doc --prefix=/usr/local"
|
# del c:\msys64\usr\bin\make.exe
|
||||||
sh -c "ln -sf $(which mingw32-make) /c/msys64/usr/bin/make.exe"
|
# mklink c:\msys64\usr\bin\make.exe mingw32-make.exe
|
||||||
sh -c "mingw32-make -j$(nproc)"
|
- dir c:\usr\bin
|
||||||
sh -c "mingw32-make -j$(nproc) install"
|
- dir c:\usr\share
|
||||||
|
- dir c:\msys64\usr\bin\make.exe
|
||||||
|
- mingw32-make -j%JOBS%
|
||||||
|
- mingw32-make -j%JOBS% install"
|
||||||
test_script:
|
test_script:
|
||||||
# Overriding TEST_EXCLUDES because `--name=!/memory_leak/` is considered as a positive filter on AppVeyor msys2.
|
# Overriding TEST_EXCLUDES because `--name=!/memory_leak/` is considered as a positive filter on AppVeyor msys2.
|
||||||
- |
|
- mingw32-make test
|
||||||
sh -c "mingw32-make test"
|
- mingw32-make -j%JOBS% test-all RUBY_FORCE_TEST_JIT=1 V=1 TEST_EXCLUDES='--excludes-dir=test/excludes'
|
||||||
sh -c "mingw32-make -j$(nproc) test-all RUBY_FORCE_TEST_JIT=1 V=1 TEST_EXCLUDES='--excludes-dir=test/excludes'"
|
- mingw32-make -j%JOBS% test-spec MSPECOPT=-j
|
||||||
sh -c "mingw32-make -j$(nproc) test-spec MSPECOPT=-j"
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue