3 # Set at the root level as this is ignored when set under matrix.env.
10 # - "pip install wheel twine"
13 # - 'VERSION="$TRAVIS_TAG" python setup.py sdist bdist_wheel'
16 # # Checkpointed release builds.
18 # script: .travis/deploy-python.sh
22 # # all_branches must be set with tags: true. See below post:
23 # # https://stackoverflow.com/a/27775257/1076585
25 # # Produce a new build for the cutting edge when master changes.
27 # script: .travis/deploy-python.sh
43 - BUILD_TYPE=Release CONAN=true
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
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
65 - extra-android-m2repository
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
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))