gitlab-ci: only run Espresso tests on emulators newer than 25

This commit is contained in:
Hans-Christoph Steiner 2019-04-23 14:46:10 +02:00
parent 854941363d
commit b8dba454e3
2 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,7 @@ errorprone:
- wait-for-emulator
- adb devices
- adb shell input keyevent 82 &
- test $AVD_SDK -ge 25 || export FLAG=-Pandroid.testInstrumentationRunnerArguments.notAnnotation=android.test.suitebuilder.annotation.LargeTest
- test $AVD_SDK -ge 25 || export FLAG=-Pandroid.testInstrumentationRunnerArguments.notAnnotation=android.support.test.filters.LargeTest
- ./gradlew connectedFullDebugAndroidTest $FLAG || (adb -e logcat -d > logcat.txt; exit 1)
connected 22 default armeabi-v7a:

View File

@ -49,6 +49,7 @@ import static org.hamcrest.Matchers.not;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeTrue;
@LargeTest
@RunWith(AndroidJUnit4.class)
public class MainActivityEspressoTest {
public static final String TAG = "MainActivityEspressoTest";