2018-03-17 12:01:30 -04:00
|
|
|
# cache cleanup 2018-03-16
|
|
|
|
|
2017-10-16 09:42:16 -04:00
|
|
|
init:
|
|
|
|
- set PATH=C:\ruby%ruby_version%\bin;C:\Program Files\7-Zip;C:\Program Files\AppVeyor\BuildAgent;C:\Program Files\Git\cmd;C:\Windows\system32
|
2018-03-17 12:01:30 -04:00
|
|
|
# Download current trunk, install OpenSSL via trunk_pkgs.cmd file
|
2017-10-16 09:42:16 -04:00
|
|
|
- if %ruby_version%==_trunk (
|
|
|
|
appveyor DownloadFile https://ci.appveyor.com/api/projects/MSP-Greg/ruby-loco/artifacts/ruby_trunk.7z -FileName C:\ruby_trunk.7z &
|
|
|
|
7z x C:\ruby_trunk.7z -oC:\ruby_trunk &
|
|
|
|
C:\ruby_trunk\trunk_pkgs.cmd
|
|
|
|
)
|
|
|
|
|
2017-07-27 14:18:58 -04:00
|
|
|
install:
|
2018-03-17 12:01:30 -04:00
|
|
|
# Install ragel
|
|
|
|
- if "%ri_file%"=="x64_2" ( C:\msys64\usr\bin\pacman -S --noconfirm mingw-w64-x86_64-ragel )
|
|
|
|
- if "%ri_file%"=="x86_2" ( C:\msys64\usr\bin\pacman -S --noconfirm mingw-w64-i686-ragel )
|
|
|
|
|
|
|
|
# Install ragel & download RI OpenSSL Knapsack package
|
2017-10-16 09:42:16 -04:00
|
|
|
# RI DevKit is only installed in Ruby23 and Ruby23-x64 folders
|
|
|
|
# RI2 MSYS2/MinGW OpenSSL package is standard Appveyor item
|
|
|
|
- if "%ri_file%"=="x86" (
|
|
|
|
appveyor DownloadFile https://dl.bintray.com/oneclick/OpenKnapsack/x86/openssl-1.0.2j-x86-windows.tar.lzma &
|
|
|
|
7z e openssl-1.0.2j-x86-windows.tar.lzma &
|
|
|
|
7z x -y openssl-1.0.2j-x86-windows.tar -oC:\ruby23\DevKit\mingw &
|
|
|
|
set b_config="--with-ssl-dir=C:/ruby23/DevKit/mingw --with-opt-include=C:/ruby23/DevKit/mingw/include" &
|
2018-03-17 12:01:30 -04:00
|
|
|
set SSL_CERT_FILE=C:/ruby24-x64/ssl/cert.pem &
|
2018-05-09 14:30:22 -04:00
|
|
|
C:\msys64\usr\bin\pacman -S --noconfirm mingw-w64-i686-ragel &
|
2018-03-17 12:01:30 -04:00
|
|
|
set PATH=%PATH%;C:\msys64\ming32\bin
|
2017-10-16 09:42:16 -04:00
|
|
|
)
|
|
|
|
- if "%ri_file%"=="x64" (
|
|
|
|
appveyor DownloadFile https://dl.bintray.com/oneclick/OpenKnapsack/x64/openssl-1.0.2j-x64-windows.tar.lzma &
|
|
|
|
7z e openssl-1.0.2j-x64-windows.tar.lzma &
|
|
|
|
7z x -y openssl-1.0.2j-x64-windows.tar -oC:\ruby23-x64\DevKit\mingw &
|
|
|
|
set b_config="--with-ssl-dir=C:/ruby23-x64/DevKit/mingw --with-opt-include=C:/ruby23-x64/DevKit/mingw/include" &
|
2018-03-17 12:01:30 -04:00
|
|
|
set SSL_CERT_FILE=C:/ruby24-x64/ssl/cert.pem &
|
2018-05-09 14:30:22 -04:00
|
|
|
C:\msys64\usr\bin\pacman -S --noconfirm mingw-w64-x86_64-ragel &
|
2018-03-17 12:01:30 -04:00
|
|
|
set PATH=%PATH%;C:\msys64\ming64\bin
|
2017-10-16 09:42:16 -04:00
|
|
|
)
|
|
|
|
- RAKEOPT:
|
|
|
|
- APPVEYOR: true
|
2017-07-27 14:18:58 -04:00
|
|
|
- ruby --version
|
|
|
|
- gem --version
|
|
|
|
- bundle --version
|
2018-03-17 12:01:30 -04:00
|
|
|
- bundle install --without documentation --path C:/av_bundle
|
|
|
|
|
|
|
|
# Download & install current OpenSSL package for later RubyInstaller2 version(s)
|
2018-05-09 14:30:22 -04:00
|
|
|
- if %ruby_version%==25-x64 (
|
|
|
|
set openssl=mingw-w64-x86_64-openssl-1.1.0.g-1-any.pkg.tar.xz
|
|
|
|
)
|
|
|
|
- if %ruby_version%==25 (
|
|
|
|
set openssl=mingw-w64-i686-openssl-1.1.0.g-1-any.pkg.tar.xz
|
|
|
|
)
|
2018-03-17 12:01:30 -04:00
|
|
|
- set dl_uri=https://dl.bintray.com/msp-greg/ruby_trunk
|
|
|
|
- if %ruby_version%==25-x64 (
|
|
|
|
C:\msys64\usr\bin\bash -lc "pacman-key -r 77D8FA18 --keyserver na.pool.sks-keyservers.net && pacman-key -f 77D8FA18 && pacman-key --lsign-key 77D8FA18" &
|
|
|
|
appveyor DownloadFile %dl_uri%/%openssl% -FileName C:\%openssl% &
|
|
|
|
appveyor DownloadFile %dl_uri%/%openssl%.sig -FileName C:\%openssl%.sig &
|
|
|
|
C:\msys64\usr\bin\pacman -Rdd --noconfirm mingw-w64-x86_64-openssl &
|
|
|
|
C:\msys64\usr\bin\pacman -Udd --noconfirm --force C:\%openssl%
|
|
|
|
)
|
2018-05-09 14:30:22 -04:00
|
|
|
- if %ruby_version%==25 (
|
|
|
|
C:\msys64\usr\bin\bash -lc "pacman-key -r 77D8FA18 --keyserver na.pool.sks-keyservers.net && pacman-key -f 77D8FA18 && pacman-key --lsign-key 77D8FA18" &
|
|
|
|
appveyor DownloadFile %dl_uri%/%openssl% -FileName C:\%openssl% &
|
|
|
|
appveyor DownloadFile %dl_uri%/%openssl%.sig -FileName C:\%openssl%.sig &
|
|
|
|
C:\msys64\usr\bin\pacman -Rdd --noconfirm mingw-w64-686-openssl &
|
|
|
|
C:\msys64\usr\bin\pacman -Udd --noconfirm --force C:\%openssl%
|
|
|
|
)
|
2017-07-27 14:18:58 -04:00
|
|
|
|
2017-10-16 09:42:16 -04:00
|
|
|
build_script:
|
|
|
|
- bundle exec rake -rdevkit compile -- %b_config%
|
|
|
|
|
2017-07-27 14:18:58 -04:00
|
|
|
test_script:
|
2017-10-16 09:42:16 -04:00
|
|
|
- set OPENSSL_DIR=
|
|
|
|
- bundle exec rake -rdevkit test TESTOPTS="--verbose"
|
|
|
|
|
|
|
|
on_finish:
|
|
|
|
- ruby -v
|
2017-07-27 14:18:58 -04:00
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
2017-10-16 09:42:16 -04:00
|
|
|
- ruby_version: _trunk
|
|
|
|
b_config: "--use-system-libraries"
|
2018-03-17 12:01:30 -04:00
|
|
|
ri_file: x64_2
|
2018-05-09 14:30:22 -04:00
|
|
|
- ruby_version: 25
|
|
|
|
b_config: "--use-system-libraries"
|
|
|
|
ri_file: x86_2
|
2018-03-17 12:01:30 -04:00
|
|
|
- ruby_version: 25-x64
|
|
|
|
b_config: "--use-system-libraries"
|
|
|
|
ri_file: x64_2
|
2017-10-16 09:42:16 -04:00
|
|
|
- ruby_version: 24
|
|
|
|
b_config: "--use-system-libraries"
|
2018-03-17 12:01:30 -04:00
|
|
|
ri_file: x86_2
|
2017-10-16 09:42:16 -04:00
|
|
|
- ruby_version: 24-x64
|
|
|
|
b_config: "--use-system-libraries"
|
2018-03-17 12:01:30 -04:00
|
|
|
ri_file: x64_2
|
2017-10-16 09:42:16 -04:00
|
|
|
- ruby_version: 23
|
|
|
|
ri_file: x86
|
|
|
|
- ruby_version: 23-x64
|
|
|
|
ri_file: x64
|
|
|
|
- ruby_version: 22
|
|
|
|
ri_file: x86
|
|
|
|
- ruby_version: 22-x64
|
|
|
|
ri_file: x64
|
|
|
|
|
|
|
|
cache:
|
2018-03-17 12:01:30 -04:00
|
|
|
- C:\av_bundle
|
2017-07-27 14:18:58 -04:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|