2015-04-01 10:35:37 +00:00
|
|
|
env:
|
|
|
|
global:
|
2017-07-13 13:27:39 +00:00
|
|
|
# Set at the root level as this is ignored when set under matrix.env.
|
2015-04-01 10:35:37 +00:00
|
|
|
- GCC_VERSION="4.9"
|
2018-11-16 17:24:06 +00:00
|
|
|
# Fail on first error if UBSAN or ASAN enabled for a target
|
|
|
|
- UBSAN_OPTIONS=halt_on_error=1
|
|
|
|
- ASAN_OPTIONS=halt_on_error=1
|
|
|
|
# Travis machines have 2 cores
|
|
|
|
- JOBS=2
|
|
|
|
- MAKEFLAGS="-j 2"
|
2018-08-16 19:17:52 +00:00
|
|
|
|
|
|
|
conan-linux: &conan-linux
|
|
|
|
os: linux
|
2018-11-12 16:49:42 +00:00
|
|
|
dist: xenial
|
2018-08-16 19:17:52 +00:00
|
|
|
language: python
|
2018-11-12 16:49:42 +00:00
|
|
|
python: "3.7"
|
2018-08-16 19:17:52 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
install:
|
|
|
|
- ./conan/travis/install.sh
|
|
|
|
script:
|
|
|
|
- ./conan/travis/build.sh
|
|
|
|
if: tag IS present
|
|
|
|
|
2019-07-25 18:06:40 +00:00
|
|
|
conan-linux-master: &conan-linux-master
|
|
|
|
os: linux
|
|
|
|
dist: xenial
|
|
|
|
language: python
|
|
|
|
python: "3.7"
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
install:
|
|
|
|
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./conan/travis/install.sh; fi'
|
|
|
|
script:
|
|
|
|
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./conan/travis/build.sh; fi'
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2018-08-16 19:17:52 +00:00
|
|
|
conan-osx: &conan-osx
|
|
|
|
os: osx
|
|
|
|
language: generic
|
|
|
|
install:
|
|
|
|
- ./conan/travis/install.sh
|
|
|
|
script:
|
|
|
|
- ./conan/travis/build.sh
|
|
|
|
if: tag IS present
|
|
|
|
|
2017-07-13 13:27:39 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2017-12-28 17:56:57 +00:00
|
|
|
#- 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
|
2018-11-30 06:03:06 +00:00
|
|
|
- language: cpp
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- docker-ce
|
|
|
|
script:
|
|
|
|
- bash .travis/build-and-run-docker-test-containers.sh
|
|
|
|
|
2017-07-13 13:27:39 +00:00
|
|
|
- language: cpp
|
|
|
|
os:
|
2018-11-16 17:24:06 +00:00
|
|
|
- linux
|
2017-12-28 17:56:57 +00:00
|
|
|
|
2017-07-13 13:27:39 +00:00
|
|
|
compiler:
|
|
|
|
- gcc
|
2017-12-28 17:56:57 +00:00
|
|
|
|
2017-07-13 13:27:39 +00:00
|
|
|
env:
|
|
|
|
matrix:
|
2018-06-08 18:03:34 +00:00
|
|
|
- BUILD_TYPE=Debug
|
2019-07-25 18:06:40 +00:00
|
|
|
- BUILD_TYPE=Release
|
2017-12-28 17:56:57 +00:00
|
|
|
|
2017-07-13 13:27:39 +00:00
|
|
|
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
|
2017-12-28 17:56:57 +00:00
|
|
|
|
2017-07-13 13:27:39 +00:00
|
|
|
script:
|
2019-02-19 19:22:25 +00:00
|
|
|
- bash .travis/check-sources.sh
|
2018-10-01 22:59:04 +00:00
|
|
|
- bash grpc/build_grpc.sh
|
2019-02-25 22:10:56 +00:00
|
|
|
- cmake .
|
|
|
|
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
|
|
|
-DFLATBUFFERS_BUILD_GRPCTEST=ON
|
|
|
|
-DGRPC_INSTALL_PATH=$TRAVIS_BUILD_DIR/google/grpc/install
|
2018-10-29 18:29:05 +00:00
|
|
|
-DPROTOBUF_DOWNLOAD_PATH=$TRAVIS_BUILD_DIR/google/grpc/third_party/protobuf
|
|
|
|
-DFLATBUFFERS_CODE_SANITIZE=ON
|
2019-10-21 17:11:32 +00:00
|
|
|
- cmake --build . --target all --clean-first -- -j${JOBS}
|
2018-11-16 17:24:06 +00:00
|
|
|
- LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/google/grpc/install/lib ctest --extra-verbose --output-on-failure
|
2018-10-22 22:41:12 +00:00
|
|
|
- bash .travis/check-generate-code.sh
|
2015-04-01 10:35:37 +00:00
|
|
|
|
2018-06-08 18:10:41 +00:00
|
|
|
- language: cpp
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode9.3
|
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- BUILD_TYPE=Debug
|
|
|
|
- BUILD_TYPE=Release
|
2019-02-25 22:10:56 +00:00
|
|
|
|
2018-06-08 18:10:41 +00:00
|
|
|
script:
|
2018-10-01 22:59:04 +00:00
|
|
|
- bash grpc/build_grpc.sh
|
2018-10-29 18:29:05 +00:00
|
|
|
- cmake .
|
2019-02-25 22:10:56 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
|
|
|
-DFLATBUFFERS_BUILD_GRPCTEST=ON
|
|
|
|
-DGRPC_INSTALL_PATH=$TRAVIS_BUILD_DIR/google/grpc/install
|
2018-10-29 18:29:05 +00:00
|
|
|
-DPROTOBUF_DOWNLOAD_PATH=$TRAVIS_BUILD_DIR/google/grpc/third_party/protobuf
|
|
|
|
-DFLATBUFFERS_CODE_SANITIZE=ON
|
2018-11-16 17:24:06 +00:00
|
|
|
- cmake --build . -- -j${JOBS}
|
|
|
|
- DYLD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/google/grpc/install/lib ctest --extra-verbose --output-on-failure
|
2018-10-22 22:41:12 +00:00
|
|
|
- bash .travis/check-generate-code.sh
|
2018-06-08 18:10:41 +00:00
|
|
|
|
2019-07-25 18:06:40 +00:00
|
|
|
- <<: *conan-linux-master
|
|
|
|
env: CONAN_GCC_VERSIONS=8 CONAN_DOCKER_IMAGE=conanio/gcc8
|
2018-08-16 19:17:52 +00:00
|
|
|
- <<: *conan-linux
|
2018-11-12 16:49:42 +00:00
|
|
|
env: CONAN_GCC_VERSIONS=4.9 CONAN_DOCKER_IMAGE=conanio/gcc49
|
2018-08-16 19:17:52 +00:00
|
|
|
- <<: *conan-linux
|
2018-11-12 16:49:42 +00:00
|
|
|
env: CONAN_GCC_VERSIONS=5 CONAN_DOCKER_IMAGE=conanio/gcc5
|
2018-08-16 19:17:52 +00:00
|
|
|
- <<: *conan-linux
|
2018-11-12 16:49:42 +00:00
|
|
|
env: CONAN_GCC_VERSIONS=6 CONAN_DOCKER_IMAGE=conanio/gcc6
|
2018-08-16 19:17:52 +00:00
|
|
|
- <<: *conan-linux
|
2018-11-12 16:49:42 +00:00
|
|
|
env: CONAN_GCC_VERSIONS=7 CONAN_DOCKER_IMAGE=conanio/gcc7
|
2018-08-16 19:17:52 +00:00
|
|
|
- <<: *conan-linux
|
2018-11-12 16:49:42 +00:00
|
|
|
env: CONAN_GCC_VERSIONS=8 CONAN_DOCKER_IMAGE=conanio/gcc8
|
2019-07-25 18:06:40 +00:00
|
|
|
- <<: *conan-linux
|
|
|
|
env: CONAN_GCC_VERSIONS=9 CONAN_DOCKER_IMAGE=conanio/gcc9
|
2018-08-16 19:17:52 +00:00
|
|
|
- <<: *conan-linux
|
2018-11-12 16:49:42 +00:00
|
|
|
env: CONAN_CLANG_VERSIONS=3.9 CONAN_DOCKER_IMAGE=conanio/clang39
|
2018-08-16 19:17:52 +00:00
|
|
|
- <<: *conan-linux
|
2018-11-12 16:49:42 +00:00
|
|
|
env: CONAN_CLANG_VERSIONS=4.0 CONAN_DOCKER_IMAGE=conanio/clang40
|
2018-08-16 19:17:52 +00:00
|
|
|
- <<: *conan-linux
|
2018-11-12 16:49:42 +00:00
|
|
|
env: CONAN_CLANG_VERSIONS=5.0 CONAN_DOCKER_IMAGE=conanio/clang50
|
2018-08-16 19:17:52 +00:00
|
|
|
- <<: *conan-linux
|
2018-11-12 16:49:42 +00:00
|
|
|
env: CONAN_CLANG_VERSIONS=6.0 CONAN_DOCKER_IMAGE=conanio/clang60
|
2019-07-25 18:06:40 +00:00
|
|
|
- <<: *conan-linux
|
|
|
|
env: CONAN_CLANG_VERSIONS=7.0 CONAN_DOCKER_IMAGE=conanio/clang7
|
|
|
|
- <<: *conan-linux
|
|
|
|
env: CONAN_CLANG_VERSIONS=8 CONAN_DOCKER_IMAGE=conanio/clang8
|
2018-08-16 19:17:52 +00:00
|
|
|
- <<: *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
|
2018-11-12 16:49:42 +00:00
|
|
|
osx_image: xcode9.4
|
2018-08-16 19:17:52 +00:00
|
|
|
env: CONAN_APPLE_CLANG_VERSIONS=9.1
|
2018-11-12 16:49:42 +00:00
|
|
|
- <<: *conan-osx
|
2019-07-25 18:06:40 +00:00
|
|
|
osx_image: xcode10.2
|
2018-11-12 16:49:42 +00:00
|
|
|
env: CONAN_APPLE_CLANG_VERSIONS=10.0
|
2018-08-16 19:17:52 +00:00
|
|
|
|
2018-10-08 19:43:57 +00:00
|
|
|
- language: android
|
|
|
|
sudo: true
|
2019-07-26 00:58:02 +00:00
|
|
|
dist: trusty
|
2018-10-08 19:43:57 +00:00
|
|
|
android:
|
|
|
|
components:
|
|
|
|
- tools
|
|
|
|
- platform-tools
|
|
|
|
- build-tools-25.0.2
|
|
|
|
- android-25
|
|
|
|
- extra-android-m2repository
|
|
|
|
compiler:
|
|
|
|
- gcc
|
2018-11-16 17:24:06 +00:00
|
|
|
|
2018-10-08 19:43:57 +00:00
|
|
|
before_install:
|
2019-02-25 22:10:56 +00:00
|
|
|
# Output something every 10 minutes or Travis kills the job
|
|
|
|
- while sleep 540; do echo "=====[ $SECONDS seconds still running ]====="; done &
|
2019-07-26 00:58:02 +00:00
|
|
|
# Install the r17c version of the NDK that still so that we can continue to test with gnustl
|
|
|
|
# and stlport.
|
|
|
|
- export ANDROID_NDK_HOME=$HOME/android-ndk
|
|
|
|
- NDK_ZIP=$ANDROID_NDK_HOME/ndk.zip
|
|
|
|
- mkdir -p $ANDROID_NDK_HOME
|
|
|
|
- curl -o $NDK_ZIP https://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip
|
|
|
|
- unzip -q -d $ANDROID_NDK_HOME $NDK_ZIP
|
|
|
|
- rm $NDK_ZIP
|
|
|
|
- mv $ANDROID_NDK_HOME/android-ndk-*/* $ANDROID_NDK_HOME
|
|
|
|
- rmdir $ANDROID_NDK_HOME/android-ndk-*
|
|
|
|
- export CMAKE=$(which cmake)
|
|
|
|
# libc required for prebuilt llvm toolchain the NDK r17c.
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq libc6; fi
|
2018-10-08 19:43:57 +00:00
|
|
|
# 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))
|
2019-02-25 22:10:56 +00:00
|
|
|
# Kill the sleep loop
|
|
|
|
- kill %1
|