Skip to content

Commit

Permalink
re-enable android/ios build in default_app and flavors
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcc007 committed Feb 29, 2020
1 parent 5859946 commit 2bfe3e9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
58 changes: 29 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,35 +32,35 @@ jobs:
# if: tag IS present
before_install:

# # Set up JDK 8 for Android SDK
# - java -version
# - curl "${GRAVIS}.install-jdk-travis.sh" --output ~/.install-jdk-travis.sh
# - export TARGET_JDK="${JDK}"
# - JDK="${JDK_SDKMANAGER}" # used when running sdkmanager
# - source ~/.install-jdk-travis.sh
# - java -version
#
# # Add missing java module used by sdkmanager, etc...
# # - export JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'
#
# # Install android tools
# - export ANDROID_HOME=~/android-sdk
# - wget -q "https://dl.google.com/android/repository/$ANDROID_SDK_TOOLS" -O android-sdk-tools.zip
# - unzip -q android-sdk-tools.zip -d ${ANDROID_HOME}
# - rm android-sdk-tools.zip
# - PATH=${PATH}:${ANDROID_HOME}/emulator:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools
# # Silence warning.
# - mkdir -p ~/.android
# - touch ~/.android/repositories.cfg
## - sdkmanager --sdk_root=$ANDROID_HOME --version
# - sdkmanager --version
# # Accept licenses before installing components, no need to echo y for each component
# - yes | sdkmanager --licenses > /dev/null
# # - sdkmanager --list | head -15
# # Platform and build tools
# - sdkmanager "tools" "platform-tools" "platforms;android-${ANDROID_PLATFORM_SDK}" "build-tools;${ANDROID_BUILD_TOOLS}" > /dev/null
# # - sdkmanager --list | head -15
# - sdkmanager --version
# Set up JDK 8 for Android SDK
- java -version
- curl "${GRAVIS}.install-jdk-travis.sh" --output ~/.install-jdk-travis.sh
- export TARGET_JDK="${JDK}"
- JDK="${JDK_SDKMANAGER}" # used when running sdkmanager
- source ~/.install-jdk-travis.sh
- java -version

# Add missing java module used by sdkmanager, etc...
# - export JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'

# Install android tools
- export ANDROID_HOME=~/android-sdk
- wget -q "https://dl.google.com/android/repository/$ANDROID_SDK_TOOLS" -O android-sdk-tools.zip
- unzip -q android-sdk-tools.zip -d ${ANDROID_HOME}
- rm android-sdk-tools.zip
- PATH=${PATH}:${ANDROID_HOME}/emulator:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools
# Silence warning.
- mkdir -p ~/.android
- touch ~/.android/repositories.cfg
# - sdkmanager --sdk_root=$ANDROID_HOME --version
- sdkmanager --version
# Accept licenses before installing components, no need to echo y for each component
- yes | sdkmanager --licenses > /dev/null
# - sdkmanager --list | head -15
# Platform and build tools
- sdkmanager "tools" "platform-tools" "platforms;android-${ANDROID_PLATFORM_SDK}" "build-tools;${ANDROID_BUILD_TOOLS}" > /dev/null
# - sdkmanager --list | head -15
- sdkmanager --version

# Switch back to our target JDK version to build and run tests
# - JDK="${TARGET_JDK}"
Expand Down
2 changes: 1 addition & 1 deletion example/default_app/sylph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test_suites:
- test_driver/main_test.dart
- test_driver/main_test.dart
pool_names:
# - android pool 1
- android pool 1
- ios pool 1
# - iPhone 5c
job_timeout: 15 # minutes, set per job, over-rides default job timeout above
2 changes: 1 addition & 1 deletion example/flavors/sylph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test_suites:
tests:
- test_driver/main_test.dart
pool_names:
# - android pool 1
- android pool 1
- ios pool 1
# - iPhone 5c
job_timeout: 15 # minutes, set per job, over-rides default job timeout above

0 comments on commit 2bfe3e9

Please sign in to comment.