diff options
author | Björn Harrtell <bjornharrtell@users.noreply.github.com> | 2021-04-12 19:41:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 10:41:59 -0700 |
commit | 408e4db4af7c728d6cd67cc5c855b71fe283aaa2 (patch) | |
tree | 0e4d4c7c011ca812659849e5942216abd335f035 /tests/generate_code.bat | |
parent | 4d2364f34263be96895524e5a89a50627429cf4a (diff) | |
download | flatbuffers-408e4db4af7c728d6cd67cc5c855b71fe283aaa2.tar.gz flatbuffers-408e4db4af7c728d6cd67cc5c855b71fe283aaa2.tar.bz2 flatbuffers-408e4db4af7c728d6cd67cc5c855b71fe283aaa2.zip |
[TS] Add Build TS to CI jobs (#6524)
* Add Build TS to CI jobs
* Add npm compile step
* Fix syntax
* Add required code gen for TS
* Exit on failure
* Make TS code gen identical to test run
* Remove duplicate TS code gen artifacts
* Remove bad gitignore
* Forgot parts of generate_code and make sure same settings for test run
* Don't forget about the bat
* Try and fix flatc args
* Another attempt to fix args
* Fix typo
* Commit up to date code gen
* Another attempt to fix sh/bat
* Move -o param to after -I
* Commit missing code gen file
* Fix grpc code gen and test
* Another grpc code gen fix
* Rework to not use ts folder
* Fix env vars in bat and make less churn
* Move TS code gen to dedicated folder
* Fix transpilation output folder and module paths
* Fixes to code gen
* Include generated js
* Moved ts code gen
* Remove test ts code gen folder
Diffstat (limited to 'tests/generate_code.bat')
-rw-r--r-- | tests/generate_code.bat | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/generate_code.bat b/tests/generate_code.bat index 71d1dba0..390efa9c 100644 --- a/tests/generate_code.bat +++ b/tests/generate_code.bat @@ -29,7 +29,7 @@ if NOT "%commandline%"=="%commandline:--cpp-std c++0x=%" ( set TEST_CPP_FLAGS=--gen-compare --cpp-ptr-type flatbuffers::unique_ptr %TEST_CPP_FLAGS% set TEST_CS_FLAGS=--cs-gen-json-serializer -set TEST_JS_TS_FLAGS=--gen-name-strings +set TEST_TS_FLAGS=--gen-name-strings set TEST_BASE_FLAGS=--reflect-names --gen-mutable --gen-object-api set TEST_RUST_FLAGS=%TEST_BASE_FLAGS% --gen-name-strings set TEST_NOINCL_FLAGS=%TEST_BASE_FLAGS% --no-includes @@ -41,13 +41,16 @@ set TEST_NOINCL_FLAGS=%TEST_BASE_FLAGS% --no-includes ..\%buildtype%\flatc.exe --python %TEST_BASE_FLAGS% -I include_test monster_test.fbs monsterdata_test.json || goto FAIL ..\%buildtype%\flatc.exe --binary --cpp --java --csharp --dart --go --lobster --lua --ts --php --python ^ -%TEST_NOINCL_FLAGS% %TEST_CPP_FLAGS% %TEST_CS_FLAGS% %TEST_JS_TS_FLAGS% -o namespace_test namespace_test/namespace_test1.fbs namespace_test/namespace_test2.fbs || goto FAIL +%TEST_NOINCL_FLAGS% %TEST_CPP_FLAGS% %TEST_CS_FLAGS% %TEST_TS_FLAGS% -o namespace_test namespace_test/namespace_test1.fbs namespace_test/namespace_test2.fbs || goto FAIL @rem For Rust we currently generate two independent schemas, with namespace_test2 @rem duplicating the types in namespace_test1 ..\%buildtype%\flatc.exe --rust --gen-all %TEST_RUST_FLAGS% -o namespace_test namespace_test/namespace_test1.fbs namespace_test/namespace_test2.fbs || goto FAIL -..\%buildtype%\flatc.exe --cpp --java --csharp --ts --php %TEST_BASE_FLAGS% %TEST_CPP_FLAGS% %TEST_CS_FLAGS% %TEST_JS_TS_FLAGS% -o union_vector ./union_vector/union_vector.fbs || goto FAIL +..\%buildtype%\flatc.exe --cpp --java --csharp --ts --php %TEST_BASE_FLAGS% %TEST_CPP_FLAGS% %TEST_CS_FLAGS% %TEST_TS_FLAGS% -o union_vector ./union_vector/union_vector.fbs || goto FAIL +..\%buildtype%\flatc.exe --ts --gen-name-strings --gen-mutable %TEST_BASE_FLAGS% %TEST_TS_FLAGS% -I include_test monster_test.fbs +..\%buildtype%\flatc.exe %TEST_BASE_FLAGS% %TEST_TS_FLAGS% -b -I include_test monster_test.fbs unicode_test.json +..\%buildtype%\flatc.exe --ts --gen-name-strings %TEST_BASE_FLAGS% %TEST_TS_FLAGS% -o union_vector union_vector/union_vector.fbs ..\%buildtype%\flatc.exe --rust -I include_test -o include_test include_test/include_test1.fbs || goto FAIL ..\%buildtype%\flatc.exe --rust -I include_test -o include_test/sub include_test/sub/include_test2.fbs || goto FAIL ..\%buildtype%\flatc.exe -b --schema --bfbs-comments --bfbs-builtins -I include_test monster_test.fbs || goto FAIL |