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:
|
2017-01-03 15:14:02 +00:00
|
|
|
# Show final status immediately if a test fails.
|
|
|
|
fast_finish: true
|
2016-12-29 23:23:42 +00:00
|
|
|
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
|
|
|
|
|
2017-01-03 15:07:15 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- external
|
|
|
|
- build-android/external
|
|
|
|
|
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`;
|
2017-01-03 15:06:43 +00:00
|
|
|
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;
|
2016-12-29 23:23:42 +00:00
|
|
|
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
|
2017-01-03 15:14:02 +00:00
|
|
|
pushd build-android;
|
2016-12-29 23:23:42 +00:00
|
|
|
./update_external_sources_android.sh;
|
|
|
|
./android-generate.sh;
|
|
|
|
ndk-build APP_ABI=$ANDROID_ABI;
|
2017-01-03 15:14:02 +00:00
|
|
|
popd;
|
2016-12-29 23:23:42 +00:00
|
|
|
fi
|