Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkShen committed Jun 28, 2019
1 parent cf48cac commit d5fb531
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,26 @@ matrix:
- extra-google-m2repository
- extra-android-m2repository
- sys-img-x86-android-26
- echo y | sdkmanager "ndk-bundle"
- echo y | sdkmanager "cmake;3.6.4111459"
cache:
directories:
- node_modules
- $HOME/.m2
- $HOME/.gradle
before_script:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
install:
- |
if [[ $TEST_SUITE = "android" ]]; then
curl -o- https://github.com/raw/creationix/nvm/v0.33.2/install.sh | bash
nvm install 7.0
npm install
echo y | sdkmanager "ndk-bundle"
echo y | sdkmanager "cmake;3.6.4111459"
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle
export PATH=$PATH:$ANDROID_NDK_HOME
echo "ndk.dir=$HOME/android-ndk-r16b" > android/local.properties
echo "ndk.dir=$ANDROID_HOME/ndk-bundle" > android/local.properties
fi
- |
if [[ $TEST_SUITE = "jsfm" ]]; then
Expand Down

0 comments on commit d5fb531

Please sign in to comment.