Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6d7429e0
Commit
6d7429e0
authored
Oct 13, 2018
by
Osama Bin Omar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Android.gitlab-ci.yml for current stable SDK
parent
79ba3892
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
lib/gitlab/ci/templates/Android.gitlab-ci.yml
lib/gitlab/ci/templates/Android.gitlab-ci.yml
+20
-20
No files found.
lib/gitlab/ci/templates/Android.gitlab-ci.yml
View file @
6d7429e0
...
...
@@ -2,28 +2,28 @@
image
:
openjdk:8-jdk
variables
:
ANDROID_COMPILE_SDK
:
"
2
5
"
ANDROID_BUILD_TOOLS
:
"
2
4.0.0
"
ANDROID_SDK_TOOLS
:
"
2
4.4
.1"
ANDROID_COMPILE_SDK
:
"
2
8
"
ANDROID_BUILD_TOOLS
:
"
2
8.0.3
"
ANDROID_SDK_TOOLS
:
"
2
6.1
.1"
before_script
:
-
apt-get --quiet update --yes
-
apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
-
wget --quiet --output-document=android-sdk.tgz https://dl.google.com/android/android-sdk_r${ANDROID_SDK_TOOLS}-linux.tgz
-
tar --extract --gzip --file=android-sdk.tgz
-
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter android-${ANDROID_COMPILE_SDK}
-
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter platform-tools
-
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter build-tools-${ANDROID_BUILD_TOOLS}
-
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository
-
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services
-
echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-m2repository
-
export ANDROID_HOME=$PWD/android-sdk-linux
-
export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/
-
chmod +x ./gradlew
-
apt-get --quiet update --yes
-
apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
-
wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
-
unzip android-sdk.zip -d android-sdk-linux
-
echo y | android-sdk-linux/tools/bin/sdkmanager "platforms;android-${ANDROID_COMPILE_SDK}" > /dev/null
-
echo y | android-sdk-linux/tools/bin/sdkmanager platform-tools > /dev/null
-
echo y | android-sdk-linux/tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}" > /dev/null
-
echo y | android-sdk-linux/tools/bin/sdkmanager "extras;google;google_play_services" > /dev/null
-
echo y | android-sdk-linux/tools/bin/sdkmanager "extras;google;m2repository" > /dev/null
-
export ANDROID_HOME=$PWD/android-sdk-linux
-
export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/
-
yes | android-sdk-linux/tools/bin/sdkmanager --licenses &
-
chmod +x ./gradlew
stages
:
-
build
-
test
-
build
-
test
build
:
stage
:
build
...
...
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