Files
renderdoc/util/travis/android_setup.sh
T
baldurk 6d85b9e990 Upgrade travis to run on bionic
* The python we were using on trusty was EOL and so breaking in sphinx. Rather
  than continuing on trusty, we upgrade to bionic and deliberately target gcc-5
  and clang-3.8 (the only thing we care about being old/minspec to ensure we
  don't break it).
2020-01-06 16:20:44 +00:00

23 lines
729 B
Bash
Executable File

#!/bin/sh
set -ev
sudo apt-get -qq update
sudo apt-get install -y cmake openjdk-8-jdk
export ARCH=`uname -m`
# Pull known working tools August 2017
wget http://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
wget http://dl.google.com/android/repository/android-ndk-r14b-linux-${ARCH}.zip
unzip -u -q android-ndk-r14b-linux-${ARCH}.zip
unzip -u -q sdk-tools-linux-3859397.zip
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export ANDROID_NDK=$TRAVIS_BUILD_DIR/android-ndk-r14b
export ANDROID_SDK=$TRAVIS_BUILD_DIR
# Answer "yes" to any license acceptance requests
pushd tools/bin
(while sleep 3; do echo "y"; done) | ./sdkmanager --sdk_root=$TRAVIS_BUILD_DIR "build-tools;26.0.1" "platforms;android-23"
popd