2016-07-28 00:34:00 +00:00
branches :
only :
- master
2017-04-24 17:04:34 +00:00
environment :
2021-01-19 20:51:13 +00:00
nodejs_version : "14"
2017-08-01 15:34:00 +00:00
global :
# Workaround for https://github.com/conda/conda-build/issues/636
PYTHONIOENCODING : UTF-8
CONDA_INSTALL_LOCN : "C:\\Miniconda35-x64"
2019-12-23 20:13:48 +00:00
CMAKE_OPTIONS : ""
CPP_TEST_OPTIONS : ""
2021-12-01 07:13:24 +00:00
CHECK_GEN_CODE : 1
2017-08-01 15:34:00 +00:00
2017-04-24 17:04:34 +00:00
matrix :
2020-01-27 18:03:00 +00:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2015
CMAKE_VS_VERSION : "14 2015"
2016-07-28 00:34:00 +00:00
platform :
- x86
- x64
configuration :
- Debug
- Release
before_build :
2019-12-23 20:13:48 +00:00
- cmake . -G"Visual Studio %CMAKE_VS_VERSION%" -DFLATBUFFERS_CODE_SANITIZE=1 %CMAKE_OPTIONS%
2016-12-12 23:43:49 +00:00
# This cuts down on a lot of noise generated by xamarin warnings.
2020-01-27 18:03:00 +00:00
- if exist "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets" del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
2016-07-28 00:34:00 +00:00
build :
project : ALL_BUILD.vcxproj
2016-12-12 23:43:49 +00:00
verbosity : minimal
2016-07-28 00:34:00 +00:00
2018-08-16 19:17:52 +00:00
after_build :
- python conan/appveyor/install.py
- python conan/appveyor/build.py
2017-08-01 15:34:00 +00:00
install :
- set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%;
2021-01-19 20:51:13 +00:00
- ps : Install-Product node $env:nodejs_version
2017-08-01 15:34:00 +00:00
2016-12-12 23:43:49 +00:00
test_script :
2021-12-01 07:13:24 +00:00
- if [%CHECK_GEN_CODE%]==[1] (call py scripts/check_generate_code.py "%CPP_TEST_OPTIONS%")
2017-08-01 15:34:00 +00:00
- "cd tests"
- 7z a GeneratedMyGameCode.zip MyGame\
2016-12-12 23:43:49 +00:00
- rem "---------------- C++ -----------------"
2017-08-01 15:34:00 +00:00
- "cd .."
2016-12-12 23:43:49 +00:00
- "%CONFIGURATION%\\flattests.exe"
- rem "---------------- JS -----------------"
- "node --version"
2020-09-17 19:21:14 +00:00
- "npm install"
2021-01-19 20:51:13 +00:00
- "npm run compile"
- "cd tests"
- "TypeScriptTest.bat"
2016-07-28 00:34:00 +00:00
2016-12-12 23:43:49 +00:00
artifacts :
2017-08-01 15:34:00 +00:00
- path : $(CONFIGURATION)\flatc.exe
2016-12-12 23:43:49 +00:00
name : flatc.exe
2017-08-01 15:34:00 +00:00
- path : tests\GeneratedMyGameCode.zip
name : GeneratedMyGameCode.zip