8 # Workaround for https://github.com/conda/conda-build/issues/636
9 PYTHONIOENCODING: UTF-8
10 CONDA_INSTALL_LOCN: "C:\\Miniconda35-x64"
15 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
16 CMAKE_VS_VERSION: "10 2010"
17 CMAKE_OPTIONS: "-DFLATBUFFERS_BUILD_LEGACY=1"
18 CPP_TEST_OPTIONS: "--std-cpp c++0x"
21 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
22 CMAKE_VS_VERSION: "12 2013"
25 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
26 CMAKE_VS_VERSION: "14 2015"
29 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
30 CMAKE_VS_VERSION: "15 2017"
31 CMAKE_OPTIONS: "-DFLATBUFFERS_ENABLE_PCH=1"
34 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
35 CMAKE_VS_VERSION: "16 2019"
36 CMAKE_OPTIONS: "-DFLATBUFFERS_ENABLE_PCH=1"
48 - set MONSTER_EXTRA=%MONSTER_EXTRA%
49 - cmake . -G"Visual Studio %CMAKE_VS_VERSION%" -DFLATBUFFERS_CODE_SANITIZE=1 %CMAKE_OPTIONS%
50 # This cuts down on a lot of noise generated by xamarin warnings.
51 - 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"
52 - if exist "C:\Program Files (x86)\MSBuild\15.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets" del "C:\Program Files (x86)\MSBuild\15.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
53 - if exist "C:\Program Files (x86)\MSBuild\16.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets" del "C:\Program Files (x86)\MSBuild\16.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
56 project: ALL_BUILD.vcxproj
60 - python conan/appveyor/install.py
61 - python conan/appveyor/build.py
64 - set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%;
65 - curl -sSf -o rustup-init.exe https://win.rustup.rs/
67 - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
72 - call .appveyor\check-generate-code.bat -b %CONFIGURATION%
74 - rem "Building all code"
75 - generate_code.bat -b %CONFIGURATION% %CPP_TEST_OPTIONS%
76 - 7z a GeneratedMyGameCode.zip MyGame\
77 - rem "---------------- C++ -----------------"
79 - "%CONFIGURATION%\\flattests.exe"
81 - rem "---------------- Java -----------------"
84 - rem "---------------- Rust ----------------"
86 - rem "---------------- JS -----------------"
88 - "..\\%CONFIGURATION%\\flatc -b -I include_test monster_test.fbs unicode_test.json"
91 - "node JavaScriptTest ./monster_test_generated"
92 - rem "-------------- Python ---------------"
99 - rem "installing flatbuffers python library"
100 - pip install ../python
101 - rem "testing without installing Numpy"
102 - python py_test.py 0 0 0
103 - rem "testing after installing Numpy - disabled"
104 # FIXME: This has a LOT of unnecessary dependencies and makes the tests fail
106 # - conda install --yes numpy
107 # - python py_test.py 0 0 0
108 - rem "---------------- C# -----------------"
109 # Have to compile this here rather than in "build" above because AppVeyor only
110 # supports building one project??
111 - "cd FlatBuffers.Test"
113 - "dotnet sln add FlatBuffers.Test.csproj"
116 - "msbuild.exe /property:Configuration=Release;OutputPath=.tmp /verbosity:minimal FlatBuffers.Test.csproj"
117 - ".tmp\\FlatBuffers.Test.exe"
118 # Run tests with UNSAFE_BYTEBUFFER
119 - "msbuild.exe /property:Configuration=Release;UnsafeByteBuffer=true;OutputPath=.tmp /verbosity:minimal FlatBuffers.Test.csproj"
120 - ".tmp\\FlatBuffers.Test.exe"
121 # TODO: add more languages.
125 - path: $(CONFIGURATION)\flatc.exe
127 - path: tests\GeneratedMyGameCode.zip
128 name: GeneratedMyGameCode.zip