-
Notifications
You must be signed in to change notification settings - Fork 15
/
circle.yml
31 lines (31 loc) · 1.22 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter "tools"
- echo y | android update sdk --no-ui --all --filter "build-tools-23.0.3"
- echo y | android update sdk --no-ui --all --filter "extra-google-m2repository"
- echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"
- echo y | android update sdk --no-ui --all --filter "extra-android-support"
checkout:
post:
- git submodule init
- git submodule update
test:
override:
# create sdcard image file
- mksdcard -l e 512M mysdcard.img
# start the emulator
- emulator -avd circleci-android22 -no-audio -no-window -sdcard mysdcard.img:
background: true
parallel: true
# wait for it to have booted
- circle-android wait-for-boot
# wait a little longer, just in case :)
- sleep 30
# uninstall app
- adb uninstall com.sregg.android.tv.spotify
# run tests against the emulator using spoon.
- ./gradlew spoonDebugAndroidTest
# copy the build outputs to artifacts
- cp -r $HOME/spotify-tv/app/build/outputs $CIRCLE_ARTIFACTS
# copy the test results to the test results directory.
- cp -r $HOME/spotify-tv/app/build/spoon/* $CIRCLE_TEST_REPORTS