blob: 88ad70115d384ca24c26d9bbb964fac7d470b5fb [file] [log] [blame]
# Build Configuration for Travis CI
# https://travis-ci.org
dist: trusty
sudo: required
language: cpp
matrix:
# Show final status immediately if a test fails.
fast_finish: true
include:
# Android build.
- os: linux
compiler: gcc
env: VULKAN_BUILD_TARGET=ANDROID ANDROID_TARGET=android-23 ANDROID_ABI=armeabi-v7a
# Linux GCC debug build.
- os: linux
compiler: gcc
env: VULKAN_BUILD_TARGET=LINUX
# Linux clang debug build.
- os: linux
compiler: clang
env: VULKAN_BUILD_TARGET=LINUX
android:
components:
- tools
- platform-tools
- build-tools-23.0.2
- android-23
cache:
directories:
- external
- build-android/external
before_install:
# Install the appropriate Linux packages.
- if [[ "$VULKAN_BUILD_TARGET" == "LINUX" ]]; then
sudo apt-get -y install libxkbcommon-dev libwayland-dev libmirclient-dev;
fi
# Install the Android NDK.
- if [[ "$VULKAN_BUILD_TARGET" == "ANDROID" ]]; then
export ARCH=`uname -m`;
wget http://dl.google.com/android/repository/android-ndk-r13b-linux-${ARCH}.zip;
unzip -u -q android-ndk-r13b-linux-${ARCH}.zip;
export ANDROID_NDK_HOME=`pwd`/android-ndk-r13b;
export JAVA_HOME="/usr/lib/jvm/java-8-oracle";
export PATH="$ANDROID_NDK_HOME:$PATH";
fi
script:
- if [[ "$VULKAN_BUILD_TARGET" == "LINUX" ]]; then
./update_external_sources.sh;
cmake -H. -Bdbuild -DCMAKE_BUILD_TYPE=Debug;
make -C dbuild;
fi
- if [[ "$VULKAN_BUILD_TARGET" == "ANDROID" ]]; then
pushd build-android;
./update_external_sources_android.sh;
./android-generate.sh;
ndk-build APP_ABI=$ANDROID_ABI;
popd;
fi