mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-07 22:03:40 +00:00
* 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>
142 lines
5.0 KiB
YAML
142 lines
5.0 KiB
YAML
env:
|
|
global:
|
|
# Set at the root level as this is ignored when set under matrix.env.
|
|
- GCC_VERSION="4.9"
|
|
|
|
conan-linux: &conan-linux
|
|
os: linux
|
|
sudo: required
|
|
language: python
|
|
python: "3.6"
|
|
services:
|
|
- docker
|
|
install:
|
|
- ./conan/travis/install.sh
|
|
script:
|
|
- ./conan/travis/build.sh
|
|
if: tag IS present
|
|
|
|
conan-osx: &conan-osx
|
|
os: osx
|
|
language: generic
|
|
install:
|
|
- ./conan/travis/install.sh
|
|
script:
|
|
- ./conan/travis/build.sh
|
|
if: tag IS present
|
|
|
|
matrix:
|
|
include:
|
|
#- language: python
|
|
# python: "2.7"
|
|
# install:
|
|
# - "pip install wheel twine"
|
|
# script:
|
|
# - "cd python/"
|
|
# - 'VERSION="$TRAVIS_TAG" python setup.py sdist bdist_wheel'
|
|
# - "cd ../"
|
|
# deploy:
|
|
# # Checkpointed release builds.
|
|
# - provider: script
|
|
# script: .travis/deploy-python.sh
|
|
# skip_cleanup: true
|
|
# on:
|
|
# tags: true
|
|
# # all_branches must be set with tags: true. See below post:
|
|
# # https://stackoverflow.com/a/27775257/1076585
|
|
# all_branches: true
|
|
# # Produce a new build for the cutting edge when master changes.
|
|
# - provider: script
|
|
# script: .travis/deploy-python.sh
|
|
# skip_cleanup: true
|
|
# on:
|
|
# branch: master
|
|
- language: cpp
|
|
os:
|
|
- linux
|
|
|
|
compiler:
|
|
- gcc
|
|
|
|
env:
|
|
matrix:
|
|
- BUILD_TYPE=Debug
|
|
- BUILD_TYPE=Release CONAN=true
|
|
|
|
before_install:
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq g++-$GCC_VERSION; fi
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq gcc-$GCC_VERSION; fi
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which g++-$GCC_VERSION) /usr/bin/g++; fi
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which gcc-$GCC_VERSION) /usr/bin/gcc; fi
|
|
|
|
script:
|
|
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE . && make && make test
|
|
- if [ "$CONAN" == "true" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo pip install conan && conan create . google/testing -s build_type=$BUILD_TYPE -tf conan/test_package; fi
|
|
|
|
- language: cpp
|
|
os: osx
|
|
osx_image: xcode9.3
|
|
env:
|
|
matrix:
|
|
- BUILD_TYPE=Debug
|
|
- BUILD_TYPE=Release
|
|
script:
|
|
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE . && make && make test
|
|
|
|
- <<: *conan-linux
|
|
env: CONAN_GCC_VERSIONS=4.9 CONAN_DOCKER_IMAGE=lasote/conangcc49
|
|
- <<: *conan-linux
|
|
env: CONAN_GCC_VERSIONS=5 CONAN_DOCKER_IMAGE=lasote/conangcc5
|
|
- <<: *conan-linux
|
|
env: CONAN_GCC_VERSIONS=6 CONAN_DOCKER_IMAGE=lasote/conangcc6
|
|
- <<: *conan-linux
|
|
env: CONAN_GCC_VERSIONS=7 CONAN_DOCKER_IMAGE=lasote/conangcc7
|
|
- <<: *conan-linux
|
|
env: CONAN_GCC_VERSIONS=8 CONAN_DOCKER_IMAGE=lasote/conangcc8
|
|
- <<: *conan-linux
|
|
env: CONAN_CLANG_VERSIONS=3.9 CONAN_DOCKER_IMAGE=lasote/conanclang39
|
|
- <<: *conan-linux
|
|
env: CONAN_CLANG_VERSIONS=4.0 CONAN_DOCKER_IMAGE=lasote/conanclang40
|
|
- <<: *conan-linux
|
|
env: CONAN_CLANG_VERSIONS=5.0 CONAN_DOCKER_IMAGE=lasote/conanclang50
|
|
- <<: *conan-linux
|
|
env: CONAN_CLANG_VERSIONS=6.0 CONAN_DOCKER_IMAGE=lasote/conanclang60
|
|
- <<: *conan-osx
|
|
osx_image: xcode7.3
|
|
env: CONAN_APPLE_CLANG_VERSIONS=7.3
|
|
- <<: *conan-osx
|
|
osx_image: xcode8.3
|
|
env: CONAN_APPLE_CLANG_VERSIONS=8.1
|
|
- <<: *conan-osx
|
|
osx_image: xcode9
|
|
env: CONAN_APPLE_CLANG_VERSIONS=9.0
|
|
- <<: *conan-osx
|
|
osx_image: xcode9.3
|
|
env: CONAN_APPLE_CLANG_VERSIONS=9.1
|
|
|
|
#- language: android
|
|
# sudo: true
|
|
# android:
|
|
# components:
|
|
# - tools
|
|
# - platform-tools
|
|
# - build-tools-25.0.2
|
|
# - android-25
|
|
# - extra-android-m2repository
|
|
# compiler:
|
|
# - gcc
|
|
# before_install:
|
|
# - git clone https://github.com/urho3d/android-ndk.git $HOME/android-ndk-root
|
|
# - export ANDROID_NDK_HOME=$HOME/android-ndk-root
|
|
# # Setup environment for Linux build which is required to build the sample.
|
|
# - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
|
|
# - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
|
|
# - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq g++-$GCC_VERSION; fi
|
|
# - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq gcc-$GCC_VERSION; fi
|
|
# - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which g++-$GCC_VERSION) /usr/bin/g++; fi
|
|
# - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which gcc-$GCC_VERSION) /usr/bin/gcc; fi
|
|
# script:
|
|
# - failed=0; for build_gradle in $(git ls-files | grep build.gradle); do ( cd "$(dirname "${build_gradle}")" && ./gradlew build ) || failed=1; done; exit $((failed))
|