123456789101112131415161718192021222324252627282930313233 |
- sudo: false
- language: android
- android:
- components:
- - platform-tools
- - tools
- - build-tools-23.0.3
- - android-23
- - extra-android-m2repository
- - sys-img-armeabi-v7a-android-23
- before_install:
- - echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 20M
- - emulator -avd test -no-skin -no-audio -no-window &
- - chmod +x ./wait_for_emulator.sh
- - ./wait_for_emulator.sh
- script:
- # build app and assemble APK, in debug mode
- - ./gradlew assembleDebug
- # run all the local unit tests
- - ./gradlew testDebug
- # - ./gradlew connectedAndroidTest
- # install app, then assemble and install instrumented tests
- - ./gradlew installDebug
- - ./gradlew installDebugAndroidTest
- # run sample instrumented unit test
- - adb shell am instrument -w -e debug false -e class com.owncloud.android.datamodel.OCFileUnitTest com.owncloud.android.test/android.support.test.runner.AndroidJUnitRunner
- env:
- global:
- - secure: bm8mkBKaujxI/C7Kp2NjwDl0vsfWd3qDGZ+7WiLPGTbXnwJf8urxFQLrMkhqIR4wZs2M1LSW+P9SfD2FwL5Y0GDo29IeYLqhW5LIT8tGCZevBUfMDqd4w+eFHY73FXEAwLWVavfKmeuyisK/JNwGr75penOuQkZXTow6wgNLBjs=
- - secure: EqLPMLaAcr+6NKeXWJdaUiNfMHJ+zdocKw7SyWsezKMMfsY6hME22m8TNHJZpt0nPCDoX7iPjJoh8svOe2RZo6UZG2q4hjcLxBu29b7QvJeChq7oJvjXPVNRUg2P2zJ2OUBbnyOhpw3cZruIncSr+QasSD8FGI7j3kw3t/86YE0=
- - secure: pfNH4RVBy0vRPKRY3z4EQD9SRPyCuqYISQ+87cOlfpVbYHOc7xspaQSg7L9sB/sBMumOuMgGSLD6RincRrSy6nHhd70Vm4ccJxJYOynqDxC3EXNihDesw9Q+MJh1mr7WpTP21sXpP4+HkLQV0U+bKl3xcnGgeR4FU3BWYigNMkA=
- matrix:
- - ANDROID_TARGET=android-23 ANDROID_ABI=armeabi-v7a
|