summaryrefslogtreecommitdiff
path: root/.travis.yml
AgeCommit message (Collapse)AuthorFilesLines
2020-11-05Modernize android build and sample (#6229)Paulo Pinheiro1-29/+10
Android build was dated, using the Android.mk approach. Current project configuration on Android encourages the usage of CMake, so we are updating the android project as an example on how to use either the Java/Kotlin generate code or the native C++ one.
2019-10-21Add `--clean-first` to the cmake-build command (travis) (#5574)Vladimir Glavnyy1-1/+1
- `--clean-first` runs `clean` target to remove previously generated files - missed `monster_extra_generated.h` file added to the `flattests` target
2019-07-25Pin FlatBuffers Android Travis builds to NDK r17c (#5460)Stewart Miles1-2/+15
r17c is the last Android NDK to include stlport and gnustl. We want to continue to support these deprecated STLs until we have confidence few enough customers are using them.
2019-07-25#4590 Fix Conan build (#5449)Uilian Ries1-3/+25
* #4590 Fix Conan build - Create separated build for Conan on master branch - Add Clang 7,8 - Add Gcc 9 Signed-off-by: Uilian Ries <uilianries@gmail.com> * #4590 Do not build Conan for PRs Signed-off-by: Uilian Ries <uilianries@gmail.com>
2019-02-25Attempting to make travis not kill the Android build.Wouter van Oortmerssen1-8/+12
Change-Id: Icdff8a90338bd2ff79ff76fe1ebaa3481da8dea4
2019-02-19Utility for checking the encoding and line ending of source files (#5188)Vladimir Glavnyy1-0/+1
* Add utility for checking the encoding of source files - accept source files with ASCII or UTF-8 without BOM - accept only CRLF line ending * Fix non-ascii symbol in idl_parcer.cpp * Remove BOM from test.cpp
2018-11-29CI: Dockerized language port tests (#5066)Robert1-0/+11
This runs a script in TravisCI that executes a bunch of small Docker image scripts to test the language ports in isolated environments. This allows us to test multiple language versions with little additional complexity. Covers: + Java OpenJDK 10.0.2 + Java OpenJDK 11.0.1 + Node 10.13.0 + Node 11.2.0 + Python CPython 2.7.15 + Python CPython 3.7.1 + Rust 1.30.1
2018-11-16Make the Parser independent from the global C-locale (#5028)Vladimir Glavnyy1-6/+13
* Make the Parser independent from the global C-locale * Set a specific test locale using the environment variable FLATBUFFERS_TEST_LOCALE * Remove redundant static qualifiers
2018-11-12Update Conan version Automatically (#5027)Uilian Ries1-13/+16
* #5026 Add FindFlatBuffers.cmake to Conan Package Signed-off-by: Uilian Ries <uilianries@gmail.com> * #5026 Build Flatbuffers on OSX 10 Signed-off-by: Uilian Ries <uilianries@gmail.com> * #5026 Auto update Conan package version Signed-off-by: Uilian Ries <uilianries@gmail.com> * #5026 Update Conan docker images Signed-off-by: Uilian Ries <uilianries@gmail.com> * #5026 Update tag var on Appveyor Signed-off-by: Uilian Ries <uilianries@gmail.com> * #5026 Filter appveyor brach name Signed-off-by: Uilian Ries <uilianries@gmail.com>
2018-10-29Add 'fsanitize=address,undefined' to tests and flatc targets (#5009)Vladimir Glavnyy1-2/+14
* Add '-fsanitize' optional flags to flattests and flatc targets Control: -DFLATBUFFERS_CODE_SANITIZE=(ON | OFF | "=memory,undefined") Travis-CI: building with -DFLATBUFFERS_CODE_SANITIZE=ON * Fix -pie flag * Cleanup
2018-10-22CI check generate code (#4998)Frank Benkstein1-0/+2
* call reflection code generation from tests This simplifies instructions to contributors so they don't forget to update reflection code. * add error handling to generate_code scripts Let them propagate their errors instead of swallowing them so they show up when called in CI. * apply editorconfig to shell scripts * use ordered map in dart codegen Using an unordered map in the codegen can lead to spurious diffs in the generated dart code. * add CI check for generate_code being run * update reflection_generated.h * disable diff-check for monster_test.bfbs Work around #5008.
2018-10-08Disable armeabi builds for Android and re-enable CI builds. (#4970)Stewart Miles1-23/+23
armeabi support was removed from the Android NDK so we should no longer build it. Since this fixes the Android build failures this commit also re-enables Travis Android builds. While re-enabling Android builds, some recent changes broke C++98 support so this fixes those issues as well which include: - Conditionally compiling use of move constructors, operators and std::move. - Changing sample to use flatbuffers::unique_ptr rather than std::unique_ptr. Finally, added the special "default_ptr_type" value for the "cpp_ptr_type" attribute. This expands to the value passed to the "--cpp-ptr-type" argument of flatc.
2018-10-01Turn on gRPC tests in travis build (#4955)Sumant Tambe1-2/+7
Download and build with a known grpc version
2018-08-16Conan build packages on CI (#4590) (#4594)Uilian Ries1-1/+55
* Build Conan package on Travis CI (#4590) - Added multi package support on Linux, running on Travis CI - Only upload when branch is a tag and named "vX.Y.Z" - Replace Conan injection by Conan wrapper - Removed os_build os_arch -- Conan 1.0.1 hotfix Signed-off-by: Uilian Ries <uilianries@gmail.com> * Build Conan package on OSX (#4590) - Added jobs to build Flatbuffers on OSX running on Travis Signed-off-by: Uilian Ries <uilianries@gmail.com> * Build Conan package on Windows (#4590) - Added support necessary to build Flatbuffers on Windows (conan) - Added Appveyor jobs to build Conan package - Only build Conan package when release (tag) Signed-off-by: Uilian Ries <uilianries@gmail.com> * Reduce Conan CI support to simple scripts (#4590) - Removed msvc 10 x86_64 workaround - Updated conan remote address - Added Bincrafters' package tools Signed-off-by: Uilian Ries <uilianries@gmail.com> * Add fPIC option on Conan recipe (#4590) - Add fPIC as optional. It works on Linux and OSX - Update recipe metadata: author, homepage, license - Checking for flatc and flathash on Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com> * Build Conan package on CI (#4590) - Add rule to run conan job only for tags - Run Conan on Linux, OSX and Windows - Update package tool to new interface Signed-off-by: Uilian Ries <uilianries@gmail.com> * Update Conan username (#4590) - Use google as default username Signed-off-by: Uilian Ries <uilianries@gmail.com> * Update OSX version on CI (#4590) - Use latest OSX 9.3 version to build Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com>
2018-08-06Temporarily disabled Android CI until fix.Wouter van Oortmerssen1-23/+23
Change-Id: I0c6758db7b4007e84b7ab8daaecd233711df8cab
2018-06-08Re-enable clang / os x in .travisWouter van Oortmerssen1-2/+10
Change-Id: I45f6326f1b7da2d83eeee72fe44fd9626a288b5b
2018-06-08Removed biicode from repo.Wouter van Oortmerssen1-7/+3
Change-Id: I8b517fb8eaf02772052d95ca55bdaa0efbffa65a
2018-01-12#4522 Conan package support (#4590)Uilian Ries1-1/+2
- Added Conan recipe to build Flatbuffers - Added Travis job to create Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com>
2017-12-28Disabled python in travis.yml pending fix.Wouter van Oortmerssen1-28/+28
Change-Id: I6d2a9cc8b32c531d4a1e272ddf29974a0a1a2ee3
2017-11-27Fixed prod PyPI URL and deploy block list.Mike Holler1-14/+13
2017-11-27Added all_branches to tags: true blockMike Holler1-0/+3
2017-11-27Add support for Python lib continuous deployment.Michael Holler1-0/+22
Use a combination of travis and twine to publish to PyPI. New publications will be made: * When `master` is updated. This will trigger the publication of a the Python artifact versioned an iso-compliant build datetime. In this way, the cutting edge version will always be available via PyPI. * When a new git tag is pushed. Tag pushes trigger the publication of a python artifact with the same version as the git tag, with the leading `v` stripped if present (`v1.2.3` becomes `1.2.3`). Publications rely on Travis having a PYPI_PASSWORD environment set in the project settings. See the Travis CI documentation for information on [setting environment variables which containing sensitive data][1]. Make extra sure the "Display value in build log" switch is OFF. In addition to setting the previously mentioned `PYPI_PASSWORD` environment variable, the owner of the PyPI `flatbuffers` repository should, after merging this commit into master, add his own commit to change `mikeholler` in `.travis/deploy-python.sh` to his username. It's also recommended that the owner of `flatbuffers` use a separate account in the unlikely event that the environment variable somehow becomes compromised. Again, this is very unlikely, since the environment variable is only set for "safe" builds approved by maintainers (not on random pull requests). [1]: https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings
2017-10-13Report a build failure when any Android build fails.Stewart Miles1-1/+1
The travis script was only failing if the last Android build fails. This changes the script to report a failure if any of the Android projects fail to build.
2017-07-20C++98 (stlport) support for core FlatBuffers and FlexBuffers.Stewart Miles1-27/+54
* Added internal - limited - implementation of flatbuffers::unique_ptr for STLs that don't ship with std::unique_ptr. In C++11 and beyond this is just an alias for std::unique_ptr. * Aliased used type traits structs is_scalar is_floating_point is_unsigned into flatbuffers namespace so they can be replaced in C++98 implementations. Right now these point at stlport's TR1 implementations. * Wrapped vector::data() in vector_data(). * Wrapped vector::emplace_back() in vector_emplace_back(). * Wrapper string::back() in string_back(). * Added variants of FlatBufferBuilder::CreateVector() and FlatBufferBuilder::CreateVectorOfStructs() that allow the use of plain function pointers. Generated code has also been modified to use plain functions to build objects rather than std::function() so all generated code will work in C++98 applications. * Added flexbuffers::Builder::Vector(), flexbuffers::Builder::TypedVector() and flexbuffers::Builder::Map() methods that allow the use of plain function pointers. * Changed Parser to internally use plain function pointers when parsing table and vector delimiters. * Added specializations of NumToString() for 64-bit types that aren't supported by stringstream in stlport. * Overloaded numeric_limits for 64-bit types not supported by stlport. * Replaced build_apk.sh (which was broken by deprecation of the "android" tool in the Android SDK) with build.gradle and the appropriate gradle wrapper to build an APK. * Switched Android build to build against all STL variants. * Updated travis configuration to build Android test and sample. Tested: * Verified all tests continue to work on Linux, OSX and Android. * Verified Travis build is green. Change-Id: I9e634363793f85b9f141d21454b10686020a2065
2016-02-22Disabled broken biicode builds on Travis for the moment.Wouter van Oortmerssen1-2/+3
Change-Id: I834e6da091ea704a3fe599a5b99f338d29cd3bf1
2015-09-11Fix OSX related errors on travisMuhammed Thanish1-7/+7
- Install g++ and cmake only on Linux. - Use biicode only on Linux machines.
2015-05-27Added clang & OS X to .travisWouter van Oortmerssen1-0/+5
2015-04-15added .travis.yml file (build with original and biicode building);franchuti6881-0/+25
added bii-travis.sh and readme.md files; added build status section with travis and biicode build systems Change-Id: I93acd1ca9497416ade6293d63b5311c4c31b880f