2018-02-14 17:09:32 +03:00
|
|
|
---
|
2018-08-13 16:46:06 +03:00
|
|
|
version: '{build}'
|
2020-03-26 20:14:23 +03:00
|
|
|
init:
|
|
|
|
- git config --global user.name git
|
|
|
|
- git config --global user.email svn-admin@ruby-lang.org
|
2021-02-02 03:55:15 +03:00
|
|
|
- git config --global core.autocrlf false
|
|
|
|
- git config --global core.eol lf
|
|
|
|
- git config --global advice.detachedHead 0
|
2021-08-14 08:27:24 +03:00
|
|
|
shallow_clone: true
|
2020-03-25 13:40:52 +03:00
|
|
|
clone_depth: 10
|
2018-02-14 17:09:32 +03:00
|
|
|
platform:
|
|
|
|
- x64
|
2021-12-13 13:10:09 +03:00
|
|
|
skip_commits:
|
2022-06-19 05:05:31 +03:00
|
|
|
message: /\[DOC\]/
|
2021-12-13 13:10:09 +03:00
|
|
|
files:
|
|
|
|
- doc/*
|
|
|
|
- '**/*.md'
|
|
|
|
- '**/*.rdoc'
|
2022-08-22 12:08:05 +03:00
|
|
|
- '**/.document'
|
2022-10-18 11:05:56 +03:00
|
|
|
- '**/*.[1-8]'
|
|
|
|
- '**/*.ronn'
|
2018-02-14 17:09:32 +03:00
|
|
|
environment:
|
2023-03-11 10:40:22 +03:00
|
|
|
ruby_version: "25-%Platform%"
|
2018-02-14 17:09:32 +03:00
|
|
|
matrix:
|
2022-10-17 08:02:47 +03:00
|
|
|
# Test only the oldest supported version because AppVeyor is unstable, its concurrency
|
|
|
|
# is limited, and compatibility issues that happen only in newer versions are rare.
|
|
|
|
# You may test some other stuff on GitHub Actions instead.
|
2018-09-04 05:18:51 +03:00
|
|
|
- build: vs
|
|
|
|
vs: 120
|
2019-08-18 09:47:19 +03:00
|
|
|
ssl: OpenSSL-v111
|
2018-10-12 03:45:07 +03:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
2019-10-22 00:36:10 +03:00
|
|
|
GEMS_FOR_TEST: ""
|
2021-12-24 09:54:18 +03:00
|
|
|
RELINE_TEST_ENCODING: "UTF-8"
|
2022-01-13 11:44:09 +03:00
|
|
|
cache:
|
|
|
|
- c:\Tools\vcpkg\installed\
|
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=%
|
2019-08-18 09:47:19 +03:00
|
|
|
- SET OPENSSL_DIR=C:\%ssl%-Win%BITS%
|
2022-01-13 11:44:09 +03:00
|
|
|
- cd C:\Tools\vcpkg
|
|
|
|
- git pull -q
|
|
|
|
- .\bootstrap-vcpkg.bat
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2022-10-18 01:37:56 +03:00
|
|
|
- vcpkg --triplet %Platform%-windows install --x-use-aria2 libffi libyaml readline zlib
|
2018-08-13 16:46:06 +03:00
|
|
|
- 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'
|
|
|
|
- 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
|
2021-08-14 08:48:24 +03:00
|
|
|
- nmake %mflags% up VCSUP="echo Update OK"
|
2020-06-16 05:44:31 +03:00
|
|
|
- nmake %mflags% extract-extlibs
|
2018-08-13 16:46:06 +03:00
|
|
|
- del Makefile
|
|
|
|
- mkdir \usr\local\bin
|
|
|
|
- mkdir \usr\local\include
|
|
|
|
- mkdir \usr\local\lib
|
|
|
|
- for %%I in (%OPENSSL_DIR%\*.dll) do mklink /h \usr\local\bin\%%~nxI %%I
|
2022-02-07 09:30:07 +03:00
|
|
|
- for %%I in (c:\Tools\vcpkg\installed\%Platform%-windows\bin\*.dll) do (
|
|
|
|
if not %%~nI == readline mklink \usr\local\bin\%%~nxI %%I
|
|
|
|
)
|
2019-05-28 05:08:22 +03:00
|
|
|
- attrib +r /s /d
|
2018-08-13 16:46:06 +03:00
|
|
|
- mkdir %Platform%-mswin_%vs%
|
|
|
|
build_script:
|
2023-02-22 04:57:51 +03:00
|
|
|
- set HAVE_GIT=no
|
2018-08-13 16:46:06 +03:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
- cd %Platform%-mswin_%vs%
|
2022-02-05 11:25:33 +03:00
|
|
|
- >-
|
|
|
|
..\win32\configure.bat
|
2022-01-13 11:44:09 +03:00
|
|
|
--with-opt-dir="/usr/local;c:/Tools/vcpkg/installed/%Platform%-windows"
|
2022-02-05 11:25:33 +03:00
|
|
|
--with-openssl-dir=%OPENSSL_DIR:\=/%
|
2018-08-13 16:46:06 +03:00
|
|
|
- nmake -l
|
|
|
|
- nmake install-nodoc
|
|
|
|
- \usr\bin\ruby -v -e "p :locale => Encoding.find('locale'), :filesystem => Encoding.find('filesystem')"
|
2018-11-28 17:08:34 +03:00
|
|
|
- if not "%GEMS_FOR_TEST%" == "" \usr\bin\gem install --no-document %GEMS_FOR_TEST%
|
2019-08-18 09:47:19 +03:00
|
|
|
- \usr\bin\ruby -ropenssl -e "puts 'Build ' + OpenSSL::OPENSSL_VERSION, 'Runtime ' + OpenSSL::OPENSSL_LIBRARY_VERSION"
|
2018-08-13 16:46:06 +03:00
|
|
|
test_script:
|
|
|
|
- set /a JOBS=%NUMBER_OF_PROCESSORS%
|
|
|
|
- nmake -l "TESTOPTS=-v -q" btest
|
|
|
|
- nmake -l "TESTOPTS=-v -q" test-basic
|
2022-02-05 11:25:33 +03:00
|
|
|
- >-
|
|
|
|
nmake -l "TESTOPTS=-v --timeout-scale=3.0
|
|
|
|
--excludes=../test/excludes/_appveyor -j%JOBS%
|
|
|
|
--exclude win32ole
|
|
|
|
--exclude test_bignum
|
|
|
|
--exclude test_syntax
|
|
|
|
--exclude test_open-uri
|
|
|
|
--exclude test_bundled_ca
|
|
|
|
" test-all
|
2018-11-16 09:47:37 +03:00
|
|
|
# separately execute tests without -j which may crash worker with -j.
|
2022-02-05 11:25:33 +03:00
|
|
|
- >-
|
|
|
|
nmake -l
|
|
|
|
"TESTOPTS=-v --timeout-scale=3.0 --excludes=../test/excludes/_appveyor"
|
|
|
|
TESTS="
|
|
|
|
../test/win32ole
|
|
|
|
../test/ruby/test_bignum.rb
|
|
|
|
../test/ruby/test_syntax.rb
|
|
|
|
../test/open-uri/test_open-uri.rb
|
|
|
|
../test/rubygems/test_bundled_ca.rb
|
|
|
|
" test-all
|
2018-10-23 17:43:19 +03:00
|
|
|
- nmake -l test-spec MSPECOPT=-fs # not using `-j` because sometimes `mspec -j` silently dies on Windows
|
2019-03-16 07:11:54 +03:00
|
|
|
notifications:
|
|
|
|
- provider: Webhook
|
|
|
|
method: POST
|
|
|
|
url:
|
2020-03-10 08:31:50 +03:00
|
|
|
secure: CcFlJNDJ/a6to7u3Z4Fnz6dScEPNx7hTha2GkSRlV+1U6dqmxY/7uBcLXYb9gR3jfQk6w+2o/HrjNAyXMNGU/JOka3s2WRI4VKitzM+lQ08owvJIh0R7LxrGH0J2e81U # ruby-lang slack: ruby/simpler-alerts-bot
|
2020-03-07 10:46:55 +03:00
|
|
|
body: >-
|
|
|
|
{{^isPullRequest}}
|
|
|
|
{
|
|
|
|
"ci": "AppVeyor CI",
|
2022-10-18 00:32:44 +03:00
|
|
|
"env": "Visual Studio 2013",
|
2020-03-07 10:46:55 +03:00
|
|
|
"url": "{{buildUrl}}",
|
|
|
|
"commit": "{{commitId}}",
|
|
|
|
"branch": "{{branch}}"
|
|
|
|
}
|
|
|
|
{{/isPullRequest}}
|
|
|
|
on_build_success: false
|
|
|
|
on_build_failure: true
|
|
|
|
on_build_status_changed: false
|