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
|
|
|
|
|
2017-01-24 21:49:45 +00:00
|
|
|
before_install:
|
2016-12-29 23:23:42 +00:00
|
|
|
# Install the appropriate Linux packages.
|
2017-01-24 21:49:45 +00:00
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "LINUX" ]]; then sudo apt-get -y install libxkbcommon-dev libwayland-dev libmirclient-dev libxrandr-dev; fi
|
2016-12-29 23:23:42 +00:00
|
|
|
|
|
|
|
# Install the Android NDK.
|
2017-01-10 20:29:52 +00:00
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "ANDROID" ]]; then export ARCH=`uname -m`; fi
|
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "ANDROID" ]]; then wget http://dl.google.com/android/repository/android-ndk-r13b-linux-${ARCH}.zip; fi
|
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "ANDROID" ]]; then unzip -u -q android-ndk-r13b-linux-${ARCH}.zip; fi
|
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "ANDROID" ]]; then export ANDROID_NDK_HOME=`pwd`/android-ndk-r13b; fi
|
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "ANDROID" ]]; then export JAVA_HOME="/usr/lib/jvm/java-8-oracle"; fi
|
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "ANDROID" ]]; then export PATH="$ANDROID_NDK_HOME:$PATH"; fi
|
2016-12-29 23:23:42 +00:00
|
|
|
|
2016-10-21 14:54:03 +00:00
|
|
|
script:
|
2017-01-10 20:29:52 +00:00
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "LINUX" ]]; then ./update_external_sources.sh; fi
|
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "LINUX" ]]; then cmake -H. -Bdbuild -DCMAKE_BUILD_TYPE=Debug; fi
|
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "LINUX" ]]; then make -C dbuild; fi
|
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "ANDROID" ]]; then pushd build-android; fi
|
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "ANDROID" ]]; then ./update_external_sources_android.sh; fi
|
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "ANDROID" ]]; then ./android-generate.sh; fi
|
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "ANDROID" ]]; then ndk-build APP_ABI=$ANDROID_ABI; fi
|
|
|
|
- if [[ "$VULKAN_BUILD_TARGET" == "ANDROID" ]]; then popd; fi
|