mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-30 17:02:19 +00:00
56 lines
2.1 KiB
YAML
56 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 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
|
|
# Linux Setup
|
|
- if [ "$PPSSPP_BUILD_TYPE" == "Linux" ]; then sudo apt-get install libsdl1.2-dev -qq; fi
|
|
# Android NDK
|
|
- if [ "$PPSSPP_BUILD_TYPE" == "Android" ]; then
|
|
sudo apt-get install openjdk-7-jdk ant -qq &&
|
|
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 &&
|
|
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";
|
|
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
|