ppsspp/.travis.yml
2013-11-29 00:23:47 +10:00

53 lines
2.1 KiB
YAML

# https://travis-ci.org
language: cpp
env:
- PPSSPP_BUILD_TYPE=Linux
- PPSSPP_BUILD_TYPE=Android
- PPSSPP_BUILD_TYPE=Blackberry
compiler:
- clang
- gcc
before_install:
- git submodule update --init --recursive
- sudo add-apt-repository -y ppa:ubuntu-sdk-team/ppa && sudo apt-get update && sudo apt-get install cmake lib32z1-dev lib32stdc++6
# Linux Setup
- if [ "$PPSSPP_BUILD_TYPE" == "Linux" ]; then sudo apt-get install libsdl1.2-dev; fi
# Android NDK
- if [ "$PPSSPP_BUILD_TYPE" == "Android" ]; then
sudo apt-get install openjdk-7-jdk ant &&
wget --timeout=30 http://dl.google.com/android/ndk/android-ndk-r9-linux-x86_64.tar.bz2 -O ndk.tar.bz2 &&
tar -xf ndk.tar.bz2 &&
export ANDROID_HOME=$(pwd)/android-ndk-r9 NDK=$(pwd)/android-ndk-r9;
fi
- if [[ "$CXX" == *clang* ]]; then export NDK_TOOLCHAIN_VERSION=clang; fi
# Blackberry NDK
- if [ "$PPSSPP_BUILD_TYPE" == "Blackberry" ]; then
BB_NDK=http://downloads.blackberry.com/upr/developers/update/bbndk/ndktarget_10.2.0.1155/ndktargetrepo_10.2.0.1155/packages/bbndk.linux. &&
wget --timeout=30 ${BB_NDK}libraries.10.2.0.1155.tar.gz -O libs.tar.gz &&
tar -xf libs.tar.gz &&
wget --timeout=30 ${BB_NDK}tools.10.2.0.15.tar.gz -O tools.tar.gz &&
tar -xf tools.tar.gz &&
QNX_TARGET="$(pwd)/target_10_2_0_1155/qnx6" && QNX_HOST="$(pwd)/host_10_2_0_15/linux/x86" && MAKEFLAGS="-I$QNX_TARGET/usr/include" LD_LIBRARY_PATH="$QNX_TARGET/armle-v7/lib/:$QNX_HOST/usr/lib/:$LD_LIBRARY_PATH" && PATH="$QNX_HOST/usr/bin:$PATH" &&
export QNX_TARGET QNX_HOST MAKEFLAGS LD_LIBRARY_PATH PATH;
fi
script:
# Compile PPSSPP
- if [ "$PPSSPP_BUILD_TYPE" == "Linux" ]; then ./b.sh --headless; fi
- if [ "$PPSSPP_BUILD_TYPE" == "Android" ]; then pushd android && ./ab.sh && popd; fi
- if [ "$PPSSPP_BUILD_TYPE" == "Blackberry" ]; then pushd Blackberry && ./build.sh --no-package && popd; fi
after_success:
- if [ "$PPSSPP_BUILD_TYPE" == "Linux" ]; then ./test.py; fi
matrix:
exclude:
- compiler: clang
env: PPSSPP_BUILD_TYPE=Android
- compiler: clang
env: PPSSPP_BUILD_TYPE=Blackberry