Wouter van Oortmerssen | f624065 | 2016-07-27 17:34:00 -0700 | [diff] [blame] | 1 | branches: |
| 2 | only: |
| 3 | - master |
| 4 | |
| 5 | os: Visual Studio 2015 |
| 6 | |
Wouter van Oortmerssen | 0c80b3a | 2017-04-24 10:04:34 -0700 | [diff] [blame] | 7 | environment: |
Kevin Rose | 3282a84 | 2017-08-01 10:34:00 -0500 | [diff] [blame] | 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 | |
Wouter van Oortmerssen | 0c80b3a | 2017-04-24 10:04:34 -0700 | [diff] [blame] | 14 | matrix: |
| 15 | - CMAKE_VS_VERSION: "10 2010" |
Vladimir Glavnyy | dd288f7 | 2019-01-08 01:04:44 +0700 | [diff] [blame] | 16 | MONSTER_EXTRA: "skip" |
| 17 | |
Uilian Ries | 1f03bec | 2018-08-16 16:17:52 -0300 | [diff] [blame] | 18 | - CMAKE_VS_VERSION: "12 2013" |
Vladimir Glavnyy | dd288f7 | 2019-01-08 01:04:44 +0700 | [diff] [blame] | 19 | MONSTER_EXTRA: "skip" |
| 20 | |
Wouter van Oortmerssen | 0c80b3a | 2017-04-24 10:04:34 -0700 | [diff] [blame] | 21 | - CMAKE_VS_VERSION: "14 2015" |
Vladimir Glavnyy | dd288f7 | 2019-01-08 01:04:44 +0700 | [diff] [blame] | 22 | MONSTER_EXTRA: "" |
Wouter van Oortmerssen | 0c80b3a | 2017-04-24 10:04:34 -0700 | [diff] [blame] | 23 | |
Wouter van Oortmerssen | f624065 | 2016-07-27 17:34:00 -0700 | [diff] [blame] | 24 | platform: |
| 25 | - x86 |
| 26 | - x64 |
| 27 | |
| 28 | configuration: |
| 29 | - Debug |
| 30 | - Release |
| 31 | |
| 32 | before_build: |
Vladimir Glavnyy | dd288f7 | 2019-01-08 01:04:44 +0700 | [diff] [blame] | 33 | - set MONSTER_EXTRA=%MONSTER_EXTRA% |
Wouter van Oortmerssen | 78c50e3 | 2019-02-14 16:20:27 -0800 | [diff] [blame] | 34 | - cmake -G"Visual Studio %CMAKE_VS_VERSION%" -DFLATBUFFERS_CODE_SANITIZE=1 . |
Wouter van Oortmerssen | 2a7a44b | 2016-12-12 15:43:49 -0800 | [diff] [blame] | 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" |
Wouter van Oortmerssen | f624065 | 2016-07-27 17:34:00 -0700 | [diff] [blame] | 37 | |
| 38 | build: |
| 39 | project: ALL_BUILD.vcxproj |
Wouter van Oortmerssen | 2a7a44b | 2016-12-12 15:43:49 -0800 | [diff] [blame] | 40 | verbosity: minimal |
Wouter van Oortmerssen | f624065 | 2016-07-27 17:34:00 -0700 | [diff] [blame] | 41 | |
Uilian Ries | 1f03bec | 2018-08-16 16:17:52 -0300 | [diff] [blame] | 42 | after_build: |
| 43 | - python conan/appveyor/install.py |
| 44 | - python conan/appveyor/build.py |
| 45 | |
Kevin Rose | 3282a84 | 2017-08-01 10:34:00 -0500 | [diff] [blame] | 46 | install: |
| 47 | - set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%; |
Robert | 02a7807 | 2018-09-12 11:44:51 -0700 | [diff] [blame] | 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 |
Kevin Rose | 3282a84 | 2017-08-01 10:34:00 -0500 | [diff] [blame] | 53 | |
Wouter van Oortmerssen | 2a7a44b | 2016-12-12 15:43:49 -0800 | [diff] [blame] | 54 | test_script: |
Frank Benkstein | efbb11e | 2018-10-22 15:41:12 -0700 | [diff] [blame] | 55 | - call .appveyor\check-generate-code.bat -b %CONFIGURATION% |
Wouter van Oortmerssen | 2a7a44b | 2016-12-12 15:43:49 -0800 | [diff] [blame] | 56 | - "cd tests" |
Kevin Rose | 3282a84 | 2017-08-01 10:34:00 -0500 | [diff] [blame] | 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 -----------------" |
Wouter van Oortmerssen | 2a7a44b | 2016-12-12 15:43:49 -0800 | [diff] [blame] | 65 | - "java -version" |
| 66 | - "JavaTest.bat" |
Robert | 02a7807 | 2018-09-12 11:44:51 -0700 | [diff] [blame] | 67 | - rem "---------------- Rust ----------------" |
| 68 | - "RustTest.bat" |
Wouter van Oortmerssen | 2a7a44b | 2016-12-12 15:43:49 -0800 | [diff] [blame] | 69 | - rem "---------------- JS -----------------" |
| 70 | - "node --version" |
Wouter van Oortmerssen | 22743ca | 2017-05-24 15:21:26 -0700 | [diff] [blame] | 71 | - "..\\%CONFIGURATION%\\flatc -b -I include_test monster_test.fbs unicode_test.json" |
Kamil Rojewski | 808b44f | 2017-04-21 18:29:42 +0200 | [diff] [blame] | 72 | - "node JavaScriptTest ./monster_test_generated" |
Kevin Rose | 3282a84 | 2017-08-01 10:34:00 -0500 | [diff] [blame] | 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 |
Wouter van Oortmerssen | 1f0bd12 | 2017-08-24 13:46:46 -0700 | [diff] [blame] | 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 |
Wouter van Oortmerssen | 2a7a44b | 2016-12-12 15:43:49 -0800 | [diff] [blame] | 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" |
Eric Erhardt | 0cdacdf | 2019-02-21 16:36:55 -0600 | [diff] [blame] | 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" |
Wouter van Oortmerssen | 2a7a44b | 2016-12-12 15:43:49 -0800 | [diff] [blame] | 98 | # TODO: add more languages. |
| 99 | - "cd ..\\.." |
Wouter van Oortmerssen | f624065 | 2016-07-27 17:34:00 -0700 | [diff] [blame] | 100 | |
Wouter van Oortmerssen | 2a7a44b | 2016-12-12 15:43:49 -0800 | [diff] [blame] | 101 | artifacts: |
Kevin Rose | 3282a84 | 2017-08-01 10:34:00 -0500 | [diff] [blame] | 102 | - path: $(CONFIGURATION)\flatc.exe |
Wouter van Oortmerssen | 2a7a44b | 2016-12-12 15:43:49 -0800 | [diff] [blame] | 103 | name: flatc.exe |
Kevin Rose | 3282a84 | 2017-08-01 10:34:00 -0500 | [diff] [blame] | 104 | - path: tests\GeneratedMyGameCode.zip |
| 105 | name: GeneratedMyGameCode.zip |