-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conan package support (#4522) #4590
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
- Added Conan recipe to build Flatbuffers - Added Travis job to create Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com>
I signed it! |
CLAs look good, thanks! |
So.. Conan needs to inject itself into CMake files using Python to work? Doesn't sound very elegant to me, but oh well. Also, as for submitting to Bintray, having binary packages available seems useful to me, though only on release versions, not every commit? |
I agree with you Injection is ugly. In general we use a wrapper to call
In fact, we need to load Conan setup by such method. This method fills env vars, directory paths ... I could create a directory with the cmake wrapper to avoid the injection. This can be done on next PR. About Bintray, my suggestion is build at least using gcc (linux), clang (linux and mac) and msvc (windows). Flatbuffers take some minutes to be built and I agree that build on each commit will increase so much your CI time. Also will be necessary that you or some maintainer create a Bintray account to push the packages.
Any question, please feel free to ask! Regards! |
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- Added jobs to build Flatbuffers on OSX running on Travis Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added jobs to build Flatbuffers on OSX running on Travis Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added support necessary to build Flatbuffers on Windows (conan) - Added Appveyor jobs to build Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added support necessary to build Flatbuffers on Windows (conan) - Added Appveyor jobs to build Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added support necessary to build Flatbuffers on Windows (conan) - Added Appveyor jobs to build Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added support necessary to build Flatbuffers on Windows (conan) - Added Appveyor jobs to build Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added support necessary to build Flatbuffers on Windows (conan) - Added Appveyor jobs to build Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added support necessary to build Flatbuffers on Windows (conan) - Added Appveyor jobs to build Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added support necessary to build Flatbuffers on Windows (conan) - Added Appveyor jobs to build Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added support necessary to build Flatbuffers on Windows (conan) - Added Appveyor jobs to build Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added support necessary to build Flatbuffers on Windows (conan) - Added Appveyor jobs to build Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added support necessary to build Flatbuffers on Windows (conan) - Added Appveyor jobs to build Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Added jobs to build Flatbuffers on OSX running on Travis Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Removed msvc 10 x86_64 workaround - Updated conan remote address - Added Bincrafters' package tools Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Removed msvc 10 x86_64 workaround - Updated conan remote address - Added Bincrafters' package tools Signed-off-by: Uilian Ries <uilianries@gmail.com>
@uilianries Conan appears to breaking unrelated PRs, see e.g. https://travis-ci.org/google/flatbuffers/jobs/337010509 |
Of course! I'll check ASAP! Thanks for report! |
The error started during apt-get update, the remotes were not achieved: After that, was not possible to run gcc: Indeed, the error occurred before to build anything: I just re-ran the master branch and I didn't see any server error: https://travis-ci.org/uilianries/flatbuffers/builds/337763849 Could you re-run the build? It looks like some temporary server error. Regards! |
CI that relies on heavy software installation is just a bad idea.. but that wasn't your fault. |
Travis supports some cache option, but AFAIK it's a paid feature. So, no free lunch. Regards. |
@uilianries the Python code in here appears to be generating CI failures: https://travis-ci.org/google/flatbuffers/jobs/367231754 Any ideas how that can be improved? |
Hi @aardappel ! Actually there is a problem with pypi service: https://status.python.org/ It's global, so we have no power to fix :( |
- 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>
- Added jobs to build Flatbuffers on OSX running on Travis Signed-off-by: Uilian Ries <uilianries@gmail.com>
- 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>
- Removed msvc 10 x86_64 workaround - Updated conan remote address - Added Bincrafters' package tools Signed-off-by: Uilian Ries <uilianries@gmail.com>
- 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>
- 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>
- 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>
- 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>
- 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>
- Use google as default username Signed-off-by: Uilian Ries <uilianries@gmail.com>
- Use latest OSX 9.3 version to build Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com>
* 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>
* Build Conan package on Travis CI (google#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 (google#4590) - Added jobs to build Flatbuffers on OSX running on Travis Signed-off-by: Uilian Ries <uilianries@gmail.com> * Build Conan package on Windows (google#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 (google#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 (google#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 (google#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 (google#4590) - Use google as default username Signed-off-by: Uilian Ries <uilianries@gmail.com> * Update OSX version on CI (google#4590) - Use latest OSX 9.3 version to build Conan package Signed-off-by: Uilian Ries <uilianries@gmail.com>
@uilianries We currently have CI errors: https://travis-ci.org/google/flatbuffers/jobs/561038298 that may be Conan related? Any idea what the problem is? |
@uilianries @aardappel This looks related (but not the cause): conan-io/conan#5094 |
looking it now |
- Create separated build for Conan on master branch - Add Clang 7,8 - Add Gcc 9 Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Hi!
This PR is about the issue #4522
I just bring the Conan recipe, to build and package.
Also, I added a job on Travis to build Flatbuffer package, just to make sure that is working.
On next PR, I want to create multi packages (os x arch x build type x options) and submit all built packages to Bintray.
/cc @memsharded @lasote @zamazan4ik