2016-12-29 23:23:42 +00:00
|
|
|
# Build Configuration for Travis CI
|
|
|
|
# https://travis-ci.org
|
|
|
|
|
2016-10-21 14:54:03 +00:00
|
|
|
dist: trusty
|
2016-12-29 23:23:42 +00:00
|
|
|
sudo: required
|
|
|
|
language: cpp
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
# Android build.
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
2017-01-03 15:06:03 +00:00
|
|
|
env: VULKAN_BUILD_TARGET=ANDROID ANDROID_TARGET=android-23 ANDROID_ABI=armeabi-v7a
|
2016-12-29 23:23:42 +00:00
|
|
|
# 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
|
|
|
|
|
2017-01-03 15:06:03 +00:00
|
|
|
android:
|
|
|
|
components:
|
|
|
|
- tools
|
|
|
|
- platform-tools
|
|
|
|
- build-tools-23.0.2
|
|
|
|
- android-23
|
|
|
|
|
2016-12-29 23:23:42 +00:00
|
|
|
before_install:
|
|
|
|
# Install the appropriate Linux packages.
|
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "LINUX" ]]; then
|
|
|
|
sudo apt-get -y install 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-r12b-linux-${ARCH}.zip;
|
|
|
|
unzip -u -q android-ndk-r12b-linux-${ARCH}.zip;
|
|
|
|
export ANDROID_NDK_HOME=`pwd`/android-ndk-r12b;
|
|
|
|
export JAVA_HOME="/usr/lib/jvm/java-8-oracle";
|
|
|
|
export PATH="$ANDROID_NDK_HOME:$PATH";
|
|
|
|
fi
|
|
|
|
|
2016-10-21 14:54:03 +00:00
|
|
|
script:
|
2016-12-29 23:23:42 +00:00
|
|
|
- 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
|
|
|
|
cd build-android;
|
|
|
|
./update_external_sources_android.sh;
|
|
|
|
./android-generate.sh;
|
|
|
|
ndk-build APP_ABI=$ANDROID_ABI;
|
|
|
|
fi
|