mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
3a8d7bdf82
With this change, the test code will not be built unless `rake test` is run, so there will be almost no side effects even if `enable_test` is always set (but, gems specified by `add_test_dependency` are included in `libmruby.a`). Also added are `test: build` task, which only builds the test code (including the main code), and `test: run` task, which only runs tests independent of build. Therefore, the idiom for building in parallel and not running tests in parallel is `rake -m test:build && rake test:run`.
46 lines
1.6 KiB
YAML
46 lines
1.6 KiB
YAML
version: "{build}"
|
|
|
|
shallow_clone: true
|
|
|
|
environment:
|
|
matrix:
|
|
- job_name: Visual Studio 2019 64bit
|
|
visualcpp: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat
|
|
appveyor_build_worker_image: Visual Studio 2019
|
|
|
|
- job_name: Visual Studio 2019 32bit
|
|
visualcpp: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat
|
|
appveyor_build_worker_image: Visual Studio 2019
|
|
|
|
- job_name: Visual Studio 2017 64bit
|
|
visualcpp: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat
|
|
appveyor_build_worker_image: Visual Studio 2017
|
|
|
|
- job_name: Visual Studio 2017 32bit
|
|
visualcpp: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat
|
|
appveyor_build_worker_image: Visual Studio 2017
|
|
|
|
- job_name: Visual Studio 2015 64bit
|
|
visualcpp: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat
|
|
appveyor_build_worker_image: Visual Studio 2015
|
|
machine: x86_amd64
|
|
|
|
- job_name: Visual Studio 2015 32bit
|
|
visualcpp: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat
|
|
appveyor_build_worker_image: Visual Studio 2015
|
|
machine: x86
|
|
|
|
init:
|
|
- call "%visualcpp%" %machine%
|
|
# For using Rubyins4aller's Ruby 2.6 64bit
|
|
# 2.6 is the highest supported Ruby version across all historical
|
|
# Visual Studio AppVeyor images. Ruby 2.7 is only on the 2019 image.
|
|
- set PATH=C:\Ruby26-x64\bin;%PATH%
|
|
- ruby --version
|
|
|
|
|
|
build_script:
|
|
- set MRUBY_CONFIG=ci/msvc
|
|
- rake -m test:build
|
|
- rake test:run
|