Updated android test [skip appveyor]

0.8
Bruno Van de Velde 2018-10-13 16:29:01 +02:00
parent 95a209fa42
commit 37004ecff0
2 changed files with 4 additions and 5 deletions

View File

@ -55,7 +55,7 @@ jobs:
addons:
apt:
packages:
- ant
- gradle
cache:
directories:
- $HOME/sfml-cache

View File

@ -1,7 +1,7 @@
set -e
NDK_DIR=$HOME/android-ndk
NDK_VER=r17b
NDK_VER=r17c
wget -nv https://dl.google.com/android/repository/android-ndk-${NDK_VER}-linux-x86_64.zip
unzip -o -q android-ndk-${NDK_VER}-linux-x86_64.zip
@ -41,9 +41,8 @@ cmake -DTGUI_OPTIMIZE_SINGLE_BUILD=TRUE -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDR
make -j2
make install
cd ../examples/android
android update project --name TGUI --path . --target android-23
$NDK_DIR/ndk-build
ant debug
echo ndk.dir=$NDK_DIR >> local.properties
gradle build
rm -R $HOME/sfml-cache/*
mv $NDK_DIR/sources/third_party/sfml/* $HOME/sfml-cache/