1 branches: 2 only: 3 - master 4 5 os: Visual Studio 2015 6 7 environment: 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 - CMAKE_VS_VERSION: "14 2015" 17 18 platform: 19 - x86 20 - x64 21 22 configuration: 23 - Debug 24 - Release 25 26 before_build: 27 - cmake -G"Visual Studio %CMAKE_VS_VERSION%" 28 # This cuts down on a lot of noise generated by xamarin warnings. 29 - del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets" 30 31 build: 32 project: ALL_BUILD.vcxproj 33 verbosity: minimal 34 35 install: 36 - set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%; 37 38 test_script: 39 - "cd tests" 40 - rem "Building all code" 41 - generate_code.bat -b %CONFIGURATION% 42 - 7z a GeneratedMyGameCode.zip MyGame\ 43 - rem "---------------- C++ -----------------" 44 - "cd .." 45 - "%CONFIGURATION%\\flattests.exe" 46 - "cd tests" 47 - rem "---------------- Java -----------------" 48 - "java -version" 49 - "JavaTest.bat" 50 - rem "---------------- JS -----------------" 51 - "node --version" 52 - "..\\%CONFIGURATION%\\flatc -b -I include_test monster_test.fbs unicode_test.json" 53 - "node JavaScriptTest ./monster_test_generated" 54 - rem "-------------- Python ---------------" 55 - where python 56 - python --version 57 - where pip 58 - pip --version 59 - where conda 60 - conda --version 61 - rem "installing flatbuffers python library" 62 - pip install ../python 63 - rem "testing without installing Numpy" 64 - python py_test.py 0 0 0 65 - rem "testing after installing Numpy - disabled" 66 # FIXME: This has a LOT of unnecessary dependencies and makes the tests fail 67 # with timeouts. 68 # - conda install --yes numpy 69 # - python py_test.py 0 0 0 70 - rem "---------------- C# -----------------" 71 # Have to compile this here rather than in "build" above because AppVeyor only 72 # supports building one project?? 73 - "cd FlatBuffers.Test" 74 - "msbuild.exe /property:Configuration=Release;OutputPath=tempcs /verbosity:minimal FlatBuffers.Test.csproj" 75 - "tempcs\\FlatBuffers.Test.exe" 76 # TODO: add more languages. 77 - "cd ..\\.." 78 79 artifacts: 80 - path: $(CONFIGURATION)\flatc.exe 81 name: flatc.exe 82 - path: tests\GeneratedMyGameCode.zip 83 name: GeneratedMyGameCode.zip 84