Browse Source

travis: specify android version

pull/2/head
Alibek Omarov 5 years ago
parent
commit
e3c095a3fa
  1. 2
      .travis.yml
  2. 4
      scripts/travis_android_deps.sh

2
.travis.yml

@ -71,6 +71,8 @@ jobs:
cache: ccache cache: ccache
os: linux os: linux
dist: xenial dist: xenial
language: java # we want xenial, so just java, not android
jdk: openjdk8
before_script: before_script:
- sh scripts/travis_common_deps.sh - sh scripts/travis_common_deps.sh
- sh scripts/travis_android_deps.sh - sh scripts/travis_android_deps.sh

4
scripts/travis_android_deps.sh

@ -11,10 +11,10 @@ wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip -qO sd
echo "Unpack Android SDK" echo "Unpack Android SDK"
unzip sdk.zip > /dev/null 2>/dev/null || exit 1 unzip sdk.zip > /dev/null 2>/dev/null || exit 1
cd $TRAVIS_BUILD_DIR
echo "Download all needed tools and NDK" echo "Download all needed tools and NDK"
cd tools/bin || exit 1 sdk/tools/bin/sdkmanager --install build-tools\;29.0.1 platform-tools platforms\;android-19 ndk-bundle
./sdkmanager --install build-tools\;29.0.1 platform-tools platforms\;android-19 ndk-bundle
echo "Download Xash3D FWGS Android source" echo "Download Xash3D FWGS Android source"
git clone --depth 1 https://github.com/FWGS/xash3d-android-project -b waf android || exit 1 git clone --depth 1 https://github.com/FWGS/xash3d-android-project -b waf android || exit 1

Loading…
Cancel
Save