2016-01-22 09:09:19 +03:00
|
|
|
---
|
|
|
|
shallow_clone: true
|
2017-02-23 10:14:29 +03:00
|
|
|
platform:
|
|
|
|
- x64
|
2016-11-10 09:38:14 +03:00
|
|
|
environment:
|
2017-02-23 10:14:29 +03:00
|
|
|
ruby_version: "23-%Platform%"
|
2017-02-11 14:37:14 +03:00
|
|
|
zlib_version: "1.2.11"
|
2017-02-23 10:14:29 +03:00
|
|
|
matrix:
|
|
|
|
- vs: "120"
|
2016-01-22 09:09:19 +03:00
|
|
|
install:
|
2017-06-08 04:19:44 +03:00
|
|
|
- chcp
|
2017-02-23 10:14:29 +03: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 09:09:19 +03:00
|
|
|
- ruby --version
|
|
|
|
- 'cl'
|
|
|
|
- SET
|
2017-05-23 04:04:09 +03: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 16:27:13 +03:00
|
|
|
- mkdir \usr\local\bin
|
|
|
|
- mkdir \usr\local\include
|
|
|
|
- mkdir \usr\local\lib
|
2017-02-11 14:37:14 +03: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 10:14:29 +03:00
|
|
|
- for %%I in (%OPENSSL_DIR%\*.dll) do mklink /h \usr\local\bin\%%~nxI %%I
|
2017-05-23 04:04:09 +03: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 09:09:19 +03:00
|
|
|
build_script:
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2017-02-23 10:14:29 +03: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 09:09:19 +03:00
|
|
|
- nmake -l
|
|
|
|
- nmake install-nodoc
|
2017-06-08 04:58:42 +03:00
|
|
|
- \usr\bin\ruby -v -e "p :locale => Encoding.find('locale'), :filesystem => Encoding.find('filesystem')"
|
2016-01-22 09:09:19 +03:00
|
|
|
test_script:
|
2017-06-18 04:15:35 +03:00
|
|
|
- set /a JOBS=%NUMBER_OF_PROCESSORS%
|
2016-09-24 15:51:14 +03:00
|
|
|
- nmake -l "TESTOPTS=-v -q" btest
|
|
|
|
- nmake -l "TESTOPTS=-v -q" test-basic
|
2017-06-08 04:19:44 +03:00
|
|
|
- nmake -l "TESTOPTS=-q -j%JOBS%" test-all
|
|
|
|
- nmake -l test-spec
|
2017-02-23 10:14:29 +03:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|