mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
appveyor.yml: fix PATH and env for msys2
based on the patch by MSP-Greg at #1945. Co-authored-by: MSP-Greg <greg.mpls@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2cbf44e55b
commit
e4b1172833
1 changed files with 21 additions and 26 deletions
47
appveyor.yml
47
appveyor.yml
|
@ -105,36 +105,31 @@ for:
|
||||||
- SET MSYSTEM=%MSYSTEM:x=MINGW%
|
- SET MSYSTEM=%MSYSTEM:x=MINGW%
|
||||||
- SET MSYS2_ARCH=%Platform:x86=i686%
|
- SET MSYS2_ARCH=%Platform:x86=i686%
|
||||||
- SET MSYS2_ARCH=%MSYS2_ARCH:x64=x86_64%
|
- SET MSYS2_ARCH=%MSYS2_ARCH:x64=x86_64%
|
||||||
|
- set MSYSTEM_PREFIX=/mingw64
|
||||||
|
- set MINGW_CHOST=%MSYS2_ARCH%-w64-mingw32
|
||||||
- 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
|
- cd ..
|
||||||
|
- mkdir build
|
||||||
|
- mkdir install
|
||||||
|
- SET PATH=%ruby_path%\bin;C:\msys64\%MSYSTEM%\bin;C:\msys64\usr\bin;%PATH%
|
||||||
- ruby --version
|
- ruby --version
|
||||||
- mkdir \usr\bin
|
|
||||||
- mkdir \usr\share
|
|
||||||
- mkdir \usr\local\bin
|
|
||||||
- mkdir \usr\local\include
|
|
||||||
- mkdir \usr\local\lib
|
|
||||||
build_script:
|
build_script:
|
||||||
|
# always update database
|
||||||
|
- pacman -Sy
|
||||||
|
- pacman -S --noconfirm --needed --noprogressbar mingw-w64-x86_64-toolchain
|
||||||
|
- pacman -S --noconfirm --needed --noprogressbar mingw-w64-x86_64-gdbm mingw-w64-x86_64-gmp mingw-w64-x86_64-libffi mingw-w64-x86_64-ncurses mingw-w64-x86_64-readline mingw-w64-x86_64-zlib
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
- cd %APPVEYOR_BUILD_FOLDER%
|
||||||
- pacman --noconfirm --sync --refresh --refresh pacman
|
- set CFLAGS=-march=%MSYS2_ARCH:_=-% -mtune=generic -O3 -pipe
|
||||||
- pacman --noconfirm --sync --refresh --refresh --sysupgrade --sysupgrade
|
- set CXXFLAGS=%CFLAGS%
|
||||||
- pacman --noconfirm -S --needed base-devel mingw-w64-x86_64-gdbm
|
- set CPPFLAGS=-D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048
|
||||||
- sh -c "ln -s $(which autom4te) /usr/bin/autom4te"
|
- set LDFLAGS=-pipe
|
||||||
# mklink \usr\bin\autom4te c:\msys64\usr\bin\autom4te
|
- sh -c "autoreconf -fi"
|
||||||
- sh -c "ln -s $(which m4) /usr/bin/m4"
|
- cd ..\build
|
||||||
# mklink \usr\bin\m4.exe c:\msys64\usr\bin\m4.exe
|
- sh ../ruby/configure --disable-install-doc --prefix=/. --build=%MINGW_CHOST% --host=%MINGW_CHOST% --target=%MINGW_CHOST%
|
||||||
- sh -c "ln -s /c/msys64/usr/share/autoconf /usr/share/autoconf"
|
- mingw32-make -j%JOBS% up
|
||||||
# mklink /d \usr\share\autoconf c:\msys64\usr\share\autoconf
|
|
||||||
- sh -c autoconf
|
|
||||||
- sh configure --disable-install-doc --prefix=/usr/local
|
|
||||||
- sh -c "ln -sf $(which mingw32-make) /c/msys64/usr/bin/make.exe"
|
|
||||||
# del c:\msys64\usr\bin\make.exe
|
|
||||||
# mklink c:\msys64\usr\bin\make.exe mingw32-make.exe
|
|
||||||
- dir c:\usr\bin
|
|
||||||
- dir c:\usr\share
|
|
||||||
- dir c:\msys64\usr\bin\make.exe
|
|
||||||
- mingw32-make -j%JOBS%
|
- mingw32-make -j%JOBS%
|
||||||
- mingw32-make -j%JOBS% install"
|
- mingw32-make DESTDIR=../install install-nodoc
|
||||||
test_script:
|
test_script:
|
||||||
- mingw32-make test
|
- mingw32-make test
|
||||||
- mingw32-make -j%JOBS% test-all RUBY_FORCE_TEST_JIT=1 V=1
|
- mingw32-make test-all TESTOPTS="-j %JOBS% --retry --job-status=normal --show-skip --subprocess-timeout-scale=1.5" RUBY_FORCE_TEST_JIT=1 V=1
|
||||||
- mingw32-make -j%JOBS% test-spec MSPECOPT=-j
|
- mingw32-make test-spec MSPECOPT=-j
|
||||||
|
|
Loading…
Reference in a new issue