Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
F-Droid
Client
Commits
dc9973cd
Commit
dc9973cd
authored
May 12, 2016
by
Daniel Martí
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: set up android-17 emulator with the image
parent
2e04d4b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
+2
-17
.gitlab-ci.yml
.gitlab-ci.yml
+2
-17
No files found.
.gitlab-ci.yml
View file @
dc9973cd
image
:
mvdan/fdroid-ci:client-20160
429
image
:
mvdan/fdroid-ci:client-20160
512
cache
:
paths
:
...
...
@@ -7,14 +7,11 @@ cache:
variables
:
AVD_SDK
:
"
17"
SKIN
:
"
QVGA"
# switch glibc to a memory conserving mode
MALLOC_ARENA_MAX
:
"
2"
gradle
:
script
:
-
echo y | android update sdk --no-ui --filter android-$AVD_SDK
-
echo y | android update sdk --no-ui --all --filter sys-img-armeabi-v7a-android-$AVD_SDK
-
export GRADLE_USER_HOME=$PWD/.gradle
# always report on lint errors to the build log
-
sed -i -e 's,textReport .*,textReport
true
,' app/build.gradle
...
...
@@ -26,19 +23,7 @@ gradle:
done;
exit 1;
}
# emulators will only start if they have tiny amounts of RAM
-
sed -i -e 's,^hw.ramSize=.*,hw.ramSize=384,'
-e 's,^vm.heapSize=.*,vm.heapSize=48,'
-e 's,^hw.gpu.enabled.*,hw.gpu.enabled =
false
,'
$ANDROID_HOME/platforms/android-$AVD_SDK/skins/$SKIN/hardware.ini
-
echo "hw.gpu.enabled =
false
" >>
$ANDROID_HOME/platforms/android-$AVD_SDK/skins/$SKIN/hardware.ini
-
echo no | android --verbose create avd
--force
--name fcl-test
--skin $SKIN
--target android-$AVD_SDK
-
emulator64-arm -avd fcl-test -no-skin -no-audio -no-window &
-
emulator64-arm -avd fcl-test-$AVD_SDK -no-skin -no-audio -no-window &
-
./tools/wait-for-emulator
-
adb shell input keyevent 82 &
-
export EXITVALUE=0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment