Skip to content

Commit

Permalink
Clarify the use of a fake NDK version
Browse files Browse the repository at this point in the history
  • Loading branch information
hevrard committed Jun 16, 2020
1 parent 23f5d44 commit d062494
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions kokoro/presubmit/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ curl -L -k -s https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y clang-format-6.0

# Mock the correct NDK version.
# Our Bazel scripts check that the correct NDK version is installed: rather
# than downloading the 1+GB NDK just to have a matching version to pass this
# presubmit test, we "mock" the version by overwriting it manually.
export ANDROID_NDK_HOME=/opt/android-ndk-r16b
# Fake NDK with the expected version.
# Our Bazel scripts check that a specific NDK version is installed: rather
# than downloading the 1GB+ NDK just to have a matching version, we manually
# create a fake NDK with only a version file.
export ANDROID_NDK_HOME=android-ndk-fake
mkdir -p $ANDROID_NDK_HOME
cat > $ANDROID_NDK_HOME/source.properties <<EOF
Pkg.Desc = Android NDK
Pkg.Revision = 21.0.6113669
Expand Down

0 comments on commit d062494

Please sign in to comment.