mirror of
https://github.com/material-components/material-components-android.git
synced 2026-01-19 19:41:35 +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
20 lines
379 B
Bash
Executable File
20 lines
379 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
# Start emulator in the background if necessary.
|
|
|
|
echo "TEST_TYPE=$TEST_TYPE"
|
|
echo "EMULATOR_TAG=$EMULATOR_TAG"
|
|
echo "EMULATOR_API=$EMULATOR_API"
|
|
echo "ABI=$ABI"
|
|
|
|
if [ "$TEST_TYPE" == "instrumentation" ] ; then
|
|
echo "Starting AVD for API $EMULATOR_API"
|
|
./travis_create_avd.sh &
|
|
else
|
|
echo "Skipping AVD for non-instrumentation build"
|
|
fi
|
|
|
|
exit 0
|