third_party_vulkan-loader/.travis.yml

66 lines
1.7 KiB
YAML
Raw Normal View History

# 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
2017-01-03 15:06:03 +00:00
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
2017-01-03 15:06:03 +00:00
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 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;
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