Removed biicode from repo.
[platform/upstream/flatbuffers.git] / .travis.yml
1 env:
2   global:
3     # Set at the root level as this is ignored when set under matrix.env.
4     - GCC_VERSION="4.9"
5 matrix:
6   include:
7     #- language: python
8     #  python: "2.7"
9     #  install:
10     #    - "pip install wheel twine"
11     #  script:
12     #    - "cd python/"
13     #    - 'VERSION="$TRAVIS_TAG" python setup.py sdist bdist_wheel'
14     #    - "cd ../"
15     #  deploy:
16     #    # Checkpointed release builds.
17     #    - provider: script
18     #      script: .travis/deploy-python.sh
19     #      skip_cleanup: true
20     #      on:
21     #        tags: true
22     #        # all_branches must be set with tags: true. See below post:
23     #        # https://stackoverflow.com/a/27775257/1076585
24     #        all_branches: true
25     #    # Produce a new build for the cutting edge when master changes.
26     #    - provider: script
27     #      script: .travis/deploy-python.sh
28     #      skip_cleanup: true
29     #      on:
30     #        branch: master
31     - language: cpp
32       os:
33       - linux
34       - osx
35
36       compiler:
37         - gcc
38         #- clang
39
40       env:
41         matrix:
42           - BUILD_TYPE=Debug
43           - BUILD_TYPE=Release CONAN=true
44
45       before_install:
46       - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
47       - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
48       - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq g++-$GCC_VERSION; fi
49       - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq gcc-$GCC_VERSION; fi
50       - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which g++-$GCC_VERSION) /usr/bin/g++; fi
51       - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which gcc-$GCC_VERSION) /usr/bin/gcc; fi
52
53       script:
54       - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE . && make && make test
55       - if [ "$CONAN" == "true" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo pip install conan && conan create . flatbuffers/testing -s build_type=$BUILD_TYPE; fi
56
57     - language: android
58       sudo: true
59       android:
60         components:
61           - tools
62           - platform-tools
63           - build-tools-25.0.2
64           - android-25
65           - extra-android-m2repository
66       compiler:
67         - gcc
68       before_install:
69         - git clone https://github.com/urho3d/android-ndk.git $HOME/android-ndk-root
70         - export ANDROID_NDK_HOME=$HOME/android-ndk-root
71         # Setup environment for Linux build which is required to build the sample.
72         - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
73         - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
74         - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq g++-$GCC_VERSION; fi
75         - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq gcc-$GCC_VERSION; fi
76         - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which g++-$GCC_VERSION) /usr/bin/g++; fi
77         - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which gcc-$GCC_VERSION) /usr/bin/gcc; fi
78       script:
79         - failed=0; for build_gradle in $(git ls-files | grep build.gradle); do ( cd "$(dirname "${build_gradle}")" && ./gradlew build ) || failed=1; done; exit $((failed))