forked from hrydgard/ppsspp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (29 loc) · 1.09 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# https://travis-ci.org
language: cpp
env:
- PPSSPP_BUILD_TYPE=Linux
- PPSSPP_BUILD_TYPE=Android
compiler:
- clang
- gcc
before_install:
- sudo add-apt-repository -y ppa:ubuntu-sdk-team/ppa
- sudo apt-get update
- sudo apt-get install cmake libsdl1.2-dev openjdk-7-jdk ant lib32z1-dev lib32stdc++6
- git submodule update --init --recursive
- if [ "$PPSSPP_BUILD_TYPE" == "Android" ]; then 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; fi
- if [[ "$CXX" == *clang* ]]; then export NDK_TOOLCHAIN_VERSION=clang; fi
- export ANDROID_HOME=$(pwd)/android-ndk-r9 NDK=$(pwd)/android-ndk-r9
before_script:
- mkdir build-travis
- cd build-travis
- cmake -DHEADLESS=ON ..
- cd ..
script:
- if [ "$PPSSPP_BUILD_TYPE" == "Linux" ]; then cd build-travis && make && cd ..; else cd android && ./ab.sh && cd ..; fi
- if [ "$PPSSPP_BUILD_TYPE" == "Linux" ]; then ./test.py; fi
# For now, Android clang seems to be failing to build.
matrix:
exclude:
- compiler: clang
env: PPSSPP_BUILD_TYPE=Android