2013-11-02 21:09:17 +00:00
|
|
|
# https://travis-ci.org
|
|
|
|
|
|
|
|
language: cpp
|
|
|
|
|
|
|
|
env:
|
|
|
|
- PPSSPP_BUILD_TYPE=Linux
|
|
|
|
- PPSSPP_BUILD_TYPE=Android
|
2013-11-28 13:56:32 +00:00
|
|
|
- PPSSPP_BUILD_TYPE=Blackberry
|
2013-11-02 21:09:17 +00:00
|
|
|
|
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- git submodule update --init --recursive
|
2013-11-28 15:34:56 +00:00
|
|
|
- sudo apt-get install lib32z1-dev lib32stdc++6 -qq
|
|
|
|
# Travis uses CMake 2.8.7. We require 2.8.8. Grab latest
|
|
|
|
- wget http://www.cmake.org/files/v2.8/cmake-2.8.12.1-Linux-i386.sh
|
|
|
|
- chmod a+x cmake-2.8.12.1-Linux-i386.sh
|
|
|
|
- sudo ./cmake-2.8.12.1-Linux-i386.sh --skip-license --prefix=/usr
|
2013-11-28 13:56:32 +00:00
|
|
|
# Linux Setup
|
2013-11-28 15:34:56 +00:00
|
|
|
- if [ "$PPSSPP_BUILD_TYPE" == "Linux" ]; then sudo apt-get install libsdl1.2-dev -qq; fi
|
2013-11-28 13:56:32 +00:00
|
|
|
# Android NDK
|
|
|
|
- if [ "$PPSSPP_BUILD_TYPE" == "Android" ]; then
|
2013-11-28 15:34:56 +00:00
|
|
|
sudo apt-get install openjdk-7-jdk ant -qq &&
|
2013-11-28 13:56:32 +00:00
|
|
|
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
|
2013-11-02 21:09:17 +00:00
|
|
|
- if [[ "$CXX" == *clang* ]]; then export NDK_TOOLCHAIN_VERSION=clang; fi
|
2013-11-28 13:56:32 +00:00
|
|
|
# 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 &&
|
2013-11-28 16:04:39 +00:00
|
|
|
export QNX_TARGET="$(pwd)/target_10_2_0_1155/qnx6" QNX_HOST="$(pwd)/host_10_2_0_15/linux/x86" && PATH="$QNX_HOST/usr/bin:$PATH";
|
2013-11-28 13:56:32 +00:00
|
|
|
fi
|
2013-11-02 21:09:17 +00:00
|
|
|
|
|
|
|
script:
|
2013-11-28 13:56:32 +00:00
|
|
|
# Compile PPSSPP
|
2013-11-28 14:23:47 +00:00
|
|
|
- if [ "$PPSSPP_BUILD_TYPE" == "Linux" ]; then ./b.sh --headless; fi
|
2013-11-28 13:56:32 +00:00
|
|
|
- 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:
|
2013-11-02 21:09:17 +00:00
|
|
|
- if [ "$PPSSPP_BUILD_TYPE" == "Linux" ]; then ./test.py; fi
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- compiler: clang
|
|
|
|
env: PPSSPP_BUILD_TYPE=Android
|
2013-11-28 13:56:32 +00:00
|
|
|
- compiler: clang
|
|
|
|
env: PPSSPP_BUILD_TYPE=Blackberry
|