2018-02-14 17:09:32 +03:00
|
|
|
---
|
2018-08-13 16:46:06 +03:00
|
|
|
version: '{build}'
|
2018-02-14 17:09:32 +03:00
|
|
|
shallow_clone: true
|
|
|
|
platform:
|
|
|
|
- x64
|
|
|
|
environment:
|
|
|
|
ruby_version: "24-%Platform%"
|
|
|
|
zlib_version: "1.2.11"
|
|
|
|
matrix:
|
2018-09-04 05:18:51 +03:00
|
|
|
- build: vs
|
|
|
|
vs: 120
|
|
|
|
- build: msys2
|
2018-02-14 17:09:32 +03:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2018-08-13 16:46:06 +03:00
|
|
|
notifications:
|
|
|
|
- provider: Webhook
|
|
|
|
url:
|
|
|
|
secure: iMINHMS0nZabaDsxN9omRDsekxzVvAAzEq5ev7lN6vZ6r9zNhl3/F/7POIVyahAwVFpRDeQT/iUugpAGWmOt3eGL/lZIdqiJFZ9DjPSkP68= # #alerts
|
|
|
|
method: POST
|
|
|
|
# "icon_url" is the url used by `provider: Slack`
|
|
|
|
body: >-
|
|
|
|
{{^isPullRequest}}
|
|
|
|
{
|
|
|
|
"attachments": [
|
|
|
|
{
|
|
|
|
"title": "Build {{projectName}} {{buildVersion}} {{status}}",
|
|
|
|
"fallback": "AppVeyor Build {{projectName}} {{buildVersion}} {{status}}",
|
|
|
|
"title_link": "{{buildUrl}}",
|
|
|
|
"text": "Commit <{{commitUrl}}|{{commitId}}> by {{commitAuthor}} on {{commitDate}}: _{{commitMessage}}_",
|
|
|
|
{{#passed}}
|
|
|
|
"color": "#44ee44"
|
|
|
|
{{/passed}}
|
|
|
|
{{#failed}}
|
|
|
|
"color": "#ee4444"
|
|
|
|
{{/failed}}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"icon_url": "https://slack-files2.s3-us-west-2.amazonaws.com/bot_icons/2018-02-10/314363543719_48.png",
|
|
|
|
"username": "AppVeyor CI"
|
|
|
|
}
|
|
|
|
{{/isPullRequest}}
|
|
|
|
on_build_success: false
|
|
|
|
on_build_failure: true
|
|
|
|
on_build_status_changed: true
|
2018-02-14 17:09:32 +03:00
|
|
|
for:
|
2018-02-14 15:34:49 +03:00
|
|
|
-
|
2018-08-13 16:46:06 +03:00
|
|
|
matrix:
|
2018-02-14 15:34:49 +03:00
|
|
|
only:
|
2018-09-04 05:18:51 +03:00
|
|
|
- build: vs
|
2018-08-13 16:46:06 +03:00
|
|
|
install:
|
|
|
|
- ver
|
|
|
|
- chcp
|
|
|
|
- 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;%PATH%;C:\msys64\mingw64\bin;C:\msys64\usr\bin
|
|
|
|
- ruby --version
|
|
|
|
- 'cl'
|
|
|
|
- SET
|
|
|
|
- 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
|
|
|
|
- mkdir \usr\local\bin
|
|
|
|
- mkdir \usr\local\include
|
|
|
|
- mkdir \usr\local\lib
|
|
|
|
- appveyor DownloadFile https://zlib.net/zlib%zlib_version:.=%.zip
|
|
|
|
- 7z x -o%APPVEYOR_BUILD_FOLDER%\ext\zlib zlib%zlib_version:.=%.zip
|
|
|
|
- for %%I in (%OPENSSL_DIR%\*.dll) do mklink /h \usr\local\bin\%%~nxI %%I
|
|
|
|
- mkdir %Platform%-mswin_%vs%
|
|
|
|
- ps: Get-ChildItem "win32" -Recurse | foreach {$_.Attributes = 'Readonly'}
|
|
|
|
- ps: Get-Item $env:Platform"-mswin_"$env:vs | foreach {$_.Attributes = 'Normal'}
|
|
|
|
build_script:
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
- cd %Platform%-mswin_%vs%
|
|
|
|
- ..\win32\configure.bat --without-ext=+,dbm,gdbm,readline --with-opt-dir=/usr/local --with-openssl-dir=%OPENSSL_DIR:\=/%
|
|
|
|
- nmake -l
|
|
|
|
- nmake install-nodoc
|
|
|
|
- \usr\bin\ruby -v -e "p :locale => Encoding.find('locale'), :filesystem => Encoding.find('filesystem')"
|
|
|
|
test_script:
|
|
|
|
- set /a JOBS=%NUMBER_OF_PROCESSORS%
|
|
|
|
- nmake -l "TESTOPTS=-v -q" btest
|
|
|
|
- nmake -l "TESTOPTS=-v -q" test-basic
|
|
|
|
- nmake -l "TESTOPTS=-q -j%JOBS%" test-all RUBY_FORCE_TEST_JIT=1
|
|
|
|
- nmake -l test-spec
|
2018-08-13 18:29:40 +03:00
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
2018-09-04 05:18:51 +03:00
|
|
|
- build: msys2
|
2018-08-13 18:29:40 +03:00
|
|
|
install:
|
|
|
|
- ver
|
|
|
|
- chcp
|
2018-08-15 05:15:13 +03:00
|
|
|
- set /a JOBS=%NUMBER_OF_PROCESSORS%
|
2018-08-15 07:10:19 +03:00
|
|
|
- set MSYS_NO_PATHCONV=1
|
2018-09-04 05:18:51 +03:00
|
|
|
- SET MSYSTEM=%Platform:x86=32%
|
|
|
|
- SET MSYSTEM=%MSYSTEM:x=MINGW%
|
|
|
|
- SET MSYS2_ARCH=%Platform:x86=i686%
|
|
|
|
- SET MSYS2_ARCH=%MSYS2_ARCH:x64=x86_64%
|
2018-09-04 05:19:39 +03:00
|
|
|
- set MSYSTEM_PREFIX=/mingw64
|
|
|
|
- set MINGW_CHOST=%MSYS2_ARCH%-w64-mingw32
|
2018-08-13 18:29:40 +03:00
|
|
|
- SET ruby_path=C:\Ruby%ruby_version:-x86=%
|
2018-09-04 05:19:39 +03:00
|
|
|
- cd ..
|
|
|
|
- mkdir build
|
|
|
|
- mkdir install
|
|
|
|
- SET PATH=%ruby_path%\bin;C:\msys64\%MSYSTEM%\bin;C:\msys64\usr\bin;%PATH%
|
2018-08-13 18:29:40 +03:00
|
|
|
- ruby --version
|
|
|
|
build_script:
|
2018-09-04 05:19:39 +03:00
|
|
|
# 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
|
2018-08-13 18:29:40 +03:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2018-09-04 05:19:39 +03:00
|
|
|
- set CFLAGS=-march=%MSYS2_ARCH:_=-% -mtune=generic -O3 -pipe
|
|
|
|
- set CXXFLAGS=%CFLAGS%
|
|
|
|
- set CPPFLAGS=-D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048
|
|
|
|
- set LDFLAGS=-pipe
|
|
|
|
- sh -c "autoreconf -fi"
|
|
|
|
- cd ..\build
|
|
|
|
- sh ../ruby/configure --disable-install-doc --prefix=/. --build=%MINGW_CHOST% --host=%MINGW_CHOST% --target=%MINGW_CHOST%
|
|
|
|
- mingw32-make -j%JOBS% up
|
2018-08-15 05:15:13 +03:00
|
|
|
- mingw32-make -j%JOBS%
|
2018-09-04 05:19:39 +03:00
|
|
|
- mingw32-make DESTDIR=../install install-nodoc
|
2018-08-13 18:29:40 +03:00
|
|
|
test_script:
|
2018-08-15 05:15:13 +03:00
|
|
|
- mingw32-make test
|
2018-09-04 05:19:39 +03:00
|
|
|
- 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 test-spec MSPECOPT=-j
|