2016-01-22 01:09:19 -05:00
|
|
|
---
|
|
|
|
shallow_clone: true
|
2017-02-23 02:14:29 -05:00
|
|
|
platform:
|
|
|
|
- x64
|
2016-11-10 01:38:14 -05:00
|
|
|
environment:
|
2017-02-23 02:14:29 -05:00
|
|
|
ruby_version: "23-%Platform%"
|
2017-02-11 06:37:14 -05:00
|
|
|
zlib_version: "1.2.11"
|
2017-02-23 02:14:29 -05:00
|
|
|
matrix:
|
|
|
|
- vs: "120"
|
2016-01-22 01:09:19 -05:00
|
|
|
install:
|
2017-06-07 21:19:44 -04:00
|
|
|
- chcp
|
2017-02-23 02:14:29 -05:00
|
|
|
- SET BITS=%Platform:x86=32%
|
|
|
|
- SET BITS=%BITS:x=%
|
|
|
|
- SET OPENSSL_DIR=c:\OpenSSL-Win%BITS%
|
|
|
|
- CALL SET vcvars=%%^VS%VS%COMNTOOLS^%%..\..\VC\vcvarsall.bat
|
|
|
|
- SET vcvars
|
|
|
|
- '"%vcvars%" %Platform:x64=amd64%'
|
|
|
|
- SET ruby_path=C:\Ruby%ruby_version:-x86=%
|
|
|
|
- SET PATH=\usr\local\bin;%ruby_path%\bin;%ruby_path%\Devkit\mingw\bin;%PATH%;C:\msys64\usr\bin
|
2016-01-22 01:09:19 -05:00
|
|
|
- ruby --version
|
|
|
|
- 'cl'
|
|
|
|
- SET
|
2017-05-22 21:04:09 -04:00
|
|
|
- echo> Makefile srcdir=.
|
|
|
|
- echo>> Makefile MSC_VER=0
|
|
|
|
- echo>> Makefile RT=none
|
|
|
|
- echo>> Makefile RT_VER=0
|
|
|
|
- echo>> Makefile BUILTIN_ENCOBJS=nul
|
|
|
|
- type win32\Makefile.sub >> Makefile
|
|
|
|
- nmake %mflags% touch-unicode-files
|
|
|
|
- nmake %mflags% up incs UNICODE_FILES=.
|
|
|
|
- del Makefile
|
2016-01-23 08:27:13 -05:00
|
|
|
- mkdir \usr\local\bin
|
|
|
|
- mkdir \usr\local\include
|
|
|
|
- mkdir \usr\local\lib
|
2017-02-11 06:37:14 -05:00
|
|
|
- appveyor DownloadFile https://downloads.sourceforge.net/project/libpng/zlib/%zlib_version%/zlib%zlib_version:.=%.zip
|
|
|
|
- 7z x -o%APPVEYOR_BUILD_FOLDER%\ext\zlib zlib%zlib_version:.=%.zip
|
2017-02-23 02:14:29 -05:00
|
|
|
- for %%I in (%OPENSSL_DIR%\*.dll) do mklink /h \usr\local\bin\%%~nxI %%I
|
2017-05-22 21:04:09 -04:00
|
|
|
- mkdir %Platform%-mswin_%vs%
|
|
|
|
- ps: Get-ChildItem "win32" -Recurse | foreach {$_.Attributes = 'Readonly'}
|
|
|
|
- ps: Get-Item $env:Platform"-mswin_"$env:vs | foreach {$_.Attributes = 'Normal'}
|
2016-01-22 01:09:19 -05:00
|
|
|
build_script:
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2017-02-23 02:14:29 -05:00
|
|
|
- cd %Platform%-mswin_%vs%
|
|
|
|
- ..\win32\configure.bat --without-ext=+,dbm,gdbm,readline --with-opt-dir=/usr/local --with-openssl-dir=%OPENSSL_DIR:\=/%
|
2016-01-22 01:09:19 -05:00
|
|
|
- nmake -l
|
|
|
|
- nmake install-nodoc
|
2017-06-07 21:58:42 -04:00
|
|
|
- \usr\bin\ruby -v -e "p :locale => Encoding.find('locale'), :filesystem => Encoding.find('filesystem')"
|
2016-01-22 01:09:19 -05:00
|
|
|
test_script:
|
2017-06-17 21:15:35 -04:00
|
|
|
- set /a JOBS=%NUMBER_OF_PROCESSORS%
|
2016-09-24 08:51:14 -04:00
|
|
|
- nmake -l "TESTOPTS=-v -q" btest
|
|
|
|
- nmake -l "TESTOPTS=-v -q" test-basic
|
2017-06-07 21:19:44 -04:00
|
|
|
- nmake -l "TESTOPTS=-q -j%JOBS%" test-all
|
|
|
|
- nmake -l test-spec
|
2017-02-23 02:14:29 -05:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|