mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add a travis-ci info file.
Although, it currently doesn't actually test that the tests pass...
This commit is contained in:
parent
ed1204a10f
commit
6c8bfc2b0a
1 changed files with 36 additions and 0 deletions
36
.travis.yml
Normal file
36
.travis.yml
Normal file
|
@ -0,0 +1,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
|
Loading…
Add table
Reference in a new issue