1branches: 2 only: 3 - master 4 5os: Visual Studio 2015 6 7environment: 8 9 global: 10 # Workaround for https://github.com/conda/conda-build/issues/636 11 PYTHONIOENCODING: UTF-8 12 CONDA_INSTALL_LOCN: "C:\\Miniconda35-x64" 13 14 matrix: 15 - CMAKE_VS_VERSION: "10 2010" 16 MONSTER_EXTRA: "skip" 17 18 - CMAKE_VS_VERSION: "12 2013" 19 MONSTER_EXTRA: "skip" 20 21 - CMAKE_VS_VERSION: "14 2015" 22 MONSTER_EXTRA: "" 23 24platform: 25 - x86 26 - x64 27 28configuration: 29 - Debug 30 - Release 31 32before_build: 33 - set MONSTER_EXTRA=%MONSTER_EXTRA% 34 - cmake -G"Visual Studio %CMAKE_VS_VERSION%" -DFLATBUFFERS_CODE_SANITIZE=1 . 35 # This cuts down on a lot of noise generated by xamarin warnings. 36 - del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets" 37 38build: 39 project: ALL_BUILD.vcxproj 40 verbosity: minimal 41 42after_build: 43 - python conan/appveyor/install.py 44 - python conan/appveyor/build.py 45 46install: 47 - set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%; 48 - curl -sSf -o rustup-init.exe https://win.rustup.rs/ 49 - rustup-init.exe -y 50 - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin 51 - rustc -V 52 - cargo -V 53 54test_script: 55 - call .appveyor\check-generate-code.bat -b %CONFIGURATION% 56 - "cd tests" 57 - rem "Building all code" 58 - generate_code.bat -b %CONFIGURATION% 59 - 7z a GeneratedMyGameCode.zip MyGame\ 60 - rem "---------------- C++ -----------------" 61 - "cd .." 62 - "%CONFIGURATION%\\flattests.exe" 63 - "cd tests" 64 - rem "---------------- Java -----------------" 65 - "java -version" 66 - "JavaTest.bat" 67 - rem "---------------- Rust ----------------" 68 - "RustTest.bat" 69 - rem "---------------- JS -----------------" 70 - "node --version" 71 - "..\\%CONFIGURATION%\\flatc -b -I include_test monster_test.fbs unicode_test.json" 72 - "node JavaScriptTest ./monster_test_generated" 73 - rem "-------------- Python ---------------" 74 - where python 75 - python --version 76 - where pip 77 - pip --version 78 - where conda 79 - conda --version 80 - rem "installing flatbuffers python library" 81 - pip install ../python 82 - rem "testing without installing Numpy" 83 - python py_test.py 0 0 0 84 - rem "testing after installing Numpy - disabled" 85 # FIXME: This has a LOT of unnecessary dependencies and makes the tests fail 86 # with timeouts. 87 # - conda install --yes numpy 88 # - python py_test.py 0 0 0 89 - rem "---------------- C# -----------------" 90 # Have to compile this here rather than in "build" above because AppVeyor only 91 # supports building one project?? 92 - "cd FlatBuffers.Test" 93 - "msbuild.exe /property:Configuration=Release;OutputPath=tempcs /verbosity:minimal FlatBuffers.Test.csproj" 94 - "tempcs\\FlatBuffers.Test.exe" 95 # Run tests with UNSAFE_BYTEBUFFER 96 - "msbuild.exe /property:Configuration=Release;UnsafeByteBuffer=true;OutputPath=tempcsUnsafe /verbosity:minimal FlatBuffers.Test.csproj" 97 - "tempcsUnsafe\\FlatBuffers.Test.exe" 98 # TODO: add more languages. 99 - "cd ..\\.." 100 101artifacts: 102 - path: $(CONFIGURATION)\flatc.exe 103 name: flatc.exe 104 - path: tests\GeneratedMyGameCode.zip 105 name: GeneratedMyGameCode.zip 106