ppsspp/.travis.yml

100 lines
3.8 KiB
YAML
Raw Normal View History

# https://travis-ci.org
language: cpp
notifications:
irc:
channels: "chat.freenode.net#ppsspp"
on_success: change
on_failure: always
skip_join: true
template:
- "%{repository_slug}:%{branch} - %{message} %{build_url}"
env:
- PPSSPP_BUILD_TYPE=Linux
2013-12-02 15:05:21 +00:00
CMAKE=TRUE
- PPSSPP_BUILD_TYPE=Android
- PPSSPP_BUILD_TYPE=Blackberry
2013-12-02 15:05:21 +00:00
CMAKE=TRUE
2013-12-02 07:03:00 +00:00
- PPSSPP_BUILD_TYPE=Symbian
compiler:
- gcc
2013-12-02 15:05:21 +00:00
matrix:
include:
- compiler: clang
env: PPSSPP_BUILD_TYPE=Linux
CMAKE=TRUE
before_install:
- git submodule update --init --recursive
2014-07-16 06:27:18 +00:00
- sudo apt-get update -qq
2013-12-02 07:03:00 +00:00
- sudo apt-get install aria2 -qq
2013-12-05 12:41:23 +00:00
- download_extract() { aria2c -x 16 $1 -o $2 && tar -xf $2; }
2013-12-02 15:05:21 +00:00
# Travis uses CMake 2.8.7. We require 2.8.8. Grab latest
- if [ "$CMAKE" == "TRUE" ]; then
2014-06-09 18:16:33 +00:00
sudo apt-get install lib32stdc++6 lib32z1 lib32z1-dev -qq &&
2014-06-09 16:51:23 +00:00
aria2c -x 16 http://www.cmake.org/files/v2.8/cmake-2.8.12.2-Linux-i386.sh &&
chmod a+x cmake-2.8.12.2-Linux-i386.sh &&
sudo ./cmake-2.8.12.2-Linux-i386.sh --skip-license --prefix=/usr;
fi
2013-12-05 12:41:23 +00:00
install:
# Ubuntu Linux + GCC 4.8
2013-12-02 07:03:00 +00:00
- if [ "$PPSSPP_BUILD_TYPE" == "Linux" ]; then
2014-10-12 16:51:47 +00:00
sudo add-apt-repository ppa:zoogie/sdl2-snapshots -y &&
if [[ "$CXX" == g++ ]]; then
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y;
fi;
sudo apt-get update &&
sudo apt-get install libsdl2-dev -qq &&
if [[ "$CXX" == g++ ]]; then
sudo apt-get install g++-4.8 -qq &&
export CXX="g++-4.8" CC="gcc-4.8";
2014-06-09 16:51:23 +00:00
fi;
fi
# Android NDK + GCC 4.8
- if [ "$PPSSPP_BUILD_TYPE" == "Android" ]; then
NDK_VER=android-ndk-r9d &&
2013-12-02 15:05:21 +00:00
sudo apt-get install ant -qq &&
2013-12-05 14:35:45 +00:00
download_extract http://dl.google.com/android/ndk/${NDK_VER}-linux-x86_64.tar.bz2 ${NDK_VER}-linux-x86_64.tar.bz2 &&
export ANDROID_HOME=$(pwd)/${NDK_VER} NDK=$(pwd)/${NDK_VER} &&
if [[ "$CXX" == *clang* ]]; then export NDK_TOOLCHAIN_VERSION=clang; fi;
fi
# Blackberry NDK: 10.3.0.440 + GCC: 4.8.2
- if [ "$PPSSPP_BUILD_TYPE" == "Blackberry" ]; then
download_extract http://downloads.blackberry.com/upr/developers/update/bbndk/10_3_beta/ndktarget_10.3.0.440/ndktargetrepo_10.3.0.440/packages/bbndk.linux.libraries.10.3.0.440.tar.gz libs.tar.gz &&
download_extract http://downloads.blackberry.com/upr/developers/update/bbndk/10_3_beta/ndktarget_10.3.0.440/ndktargetrepo_10.3.0.440/packages/bbndk.linux.tools.10.3.0.2702.tar.gz tools.tar.gz &&
sed -i 's/-g../&-4.8.2/g' Blackberry/bb.toolchain.cmake &&
2014-06-09 16:51:23 +00:00
export QNX_TARGET="$(pwd)/target_10_3_0_440/qnx6" QNX_HOST="$(pwd)/host_10_3_0_2702/linux/x86" && PATH="$QNX_HOST/usr/bin:$PATH";
fi
# Symbian NDK: Belle + GCC: 4.8.3
- if [ "$PPSSPP_BUILD_TYPE" == "Symbian" ]; then
2013-12-05 12:41:23 +00:00
sudo apt-get install lib32stdc++6 lib32bz2-1.0 -qq &&
2014-06-10 17:10:50 +00:00
download_extract https://github.com/xsacha/SymbianGCC/releases/download/4.8.3/gcc4.8.3_x86-64.tar.bz2 compiler.tar.bz2 &&
download_extract https://github.com/xsacha/SymbianGCC/releases/download/4.8.3/ndk.tar.bz2 ndk.tar.bz2 &&
export EPOCROOT=$(pwd)/SDKs/SymbianSR1Qt474/ SBS_GCCE483BIN=$(pwd)/gcc4.8.3_x86-64/bin &&
cp ffmpeg/symbian/armv6/lib/* $EPOCROOT/epoc32/release/armv5/urel/ &&
2014-06-10 17:10:50 +00:00
PATH=$SBS_GCCE483BIN:$(pwd)/tools/sbs/bin:$EPOCROOT/epoc32/tools:$EPOCROOT/bin:$(pwd)/tools/sbs/linux-x86_64-libc2_15/bin:$PATH;
fi
script:
# Compile PPSSPP
2013-12-02 07:03:00 +00:00
- if [ "$PPSSPP_BUILD_TYPE" == "Linux" ]; then
./b.sh --headless;
fi
- if [ "$PPSSPP_BUILD_TYPE" == "Android" ]; then
2013-12-02 07:03:00 +00:00
pushd android && ./ab.sh && popd;
fi
- if [ "$PPSSPP_BUILD_TYPE" == "Blackberry" ]; then
2014-07-24 06:34:46 +00:00
./b.sh --release --no-package;
fi
- if [ "$PPSSPP_BUILD_TYPE" == "Symbian" ]; then
QMAKE_ARGS="CONFIG+=no_assets" ./b.sh --debug --no-package;
2013-12-02 07:03:00 +00:00
fi
after_success:
- if [ "$PPSSPP_BUILD_TYPE" == "Linux" ]; then ./test.py; fi