mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-27 03:40:22 +00:00
Update Travis Android SDK and NDK gear
This commit is contained in:
parent
b324f18777
commit
435b7cabd3
10
.travis.yml
10
.travis.yml
@ -20,11 +20,11 @@ compiler:
|
||||
env:
|
||||
global:
|
||||
- BUILD_JOBS=2
|
||||
- ANDROID_HOME=$HOME/.android
|
||||
- ANDROID_SDK=$HOME/android/sdk/
|
||||
- ANDROID_NDK=$HOME/android/sdk/ndk-bundle
|
||||
- ANDROID_SDK_ROOT=$ANDROID_SDK
|
||||
- ANDROID_NDK_ROOT=$ANDROID_NDK
|
||||
- ANDROID_HOME="$HOME/.android"
|
||||
- ANDROID_SDK="$HOME/android/sdk/"
|
||||
- ANDROID_NDK="$HOME/android/sdk/ndk-bundle"
|
||||
- ANDROID_SDK_ROOT="$ANDROID_SDK"
|
||||
- ANDROID_NDK_ROOT="$ANDROID_NDK"
|
||||
|
||||
matrix:
|
||||
- BUILD_MODE="all"
|
||||
|
@ -1,17 +1,20 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
# install android deps
|
||||
sudo apt-get -qq update
|
||||
sudo apt-get -qq install --no-install-recommends openjdk-8-jdk unzip
|
||||
|
||||
# Required directories
|
||||
mkdir =p "$HOME/android"
|
||||
mkdir -p "$ANDROID_HOME"
|
||||
|
||||
# android skd/ndk
|
||||
curl -Lo /tmp/android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
|
||||
mkdir $HOME/android
|
||||
unzip -qq /tmp/android-sdk.zip -d $HOME/android/sdk/
|
||||
unzip -qq /tmp/android-sdk.zip -d "$ANDROID_SDK/"
|
||||
rm -f /tmp/android-sdk.zip
|
||||
echo y | $HOME/android/sdk/tools/bin/sdkmanager --update > /dev/null
|
||||
echo y | "$ANDROID_SDK/tools/bin/sdkmanager" --update > /dev/null
|
||||
for package in "ndk-bundle"; do
|
||||
echo install android $package
|
||||
echo y | $HOME/android/sdk/tools/bin/sdkmanager "$package" > /dev/null
|
||||
echo y | "$ANDROID_SDK/tools/bin/sdkmanager" "$package" > /dev/null
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user