mirror of
https://github.com/material-components/material-components-android.git
synced 2026-01-20 20:12:52 +08:00
-Removes unnecessary packages that were being installed before having the Google Maven Repository. -Splits Travis CI builds into separate jobs, one containing unit tests only and the rest containing instrumentation tests. This helps keep lint and unit test results separate from other checks and improves performance. -Makes sure unit test jobs do not bring up any emulators. -Makes sure instrumentation test jobs don't run any unit tests. -Adds 3 environments to run tests in, android-16, android-19 and android-21. -- Each of these environments installs its dependencies dynamically, so the build takes the least amount of time installing stuff Notice SnackBarTest is flaky, but fails often in android-21, and AppBarWithCollapsingToolbarTest.testPinnedToolbarWithMargins fails constantly on all three targets. This is not the case with internal tools, so these failures have to be debugged manually in external configurations. PiperOrigin-RevId: 169721027
17 lines
511 B
Bash
Executable File
17 lines
511 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
echo "TEST_TYPE=$TEST_TYPE"
|
|
echo "EMULATOR_TAG=$EMULATOR_TAG"
|
|
echo "EMULATOR_API=$EMULATOR_API"
|
|
echo "ABI=$ABI"
|
|
|
|
echo y | android update sdk --no-ui --all --filter "android-$EMULATOR_API"
|
|
android-update-sdk --components="sys-img-$ABI-$EMULATOR_TAG-$EMULATOR_API" --accept-licenses='android-sdk-license-[0-9a-f]{8}'
|
|
android list targets
|
|
echo no | android create avd --force -n test -t $EMULATOR_TAG-$EMULATOR_API --abi $ABI
|
|
emulator -avd test -no-audio -netfast -no-window &
|
|
|
|
exit 0
|