Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dirk Rockendorf
metager-app
Commits
af2c1b3f
Commit
af2c1b3f
authored
Nov 13, 2017
by
Phil Höfer
Browse files
Remove Android CI
parent
b07bf5f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
af2c1b3f
# Read more about this script on this blog post https://about.gitlab.com/2016/11/30/setting-up-gitlab-ci-for-android-projects/, by Greyson Parrelli
image
:
openjdk:8-jdk
variables
:
ANDROID_COMPILE_SDK
:
"
26"
ANDROID_BUILD_TOOLS
:
"
26.0.0"
ANDROID_SDK_TOOLS
:
"
24.4.1"
before_script
:
-
curl -sL https://deb.nodesource.com/setup_6.x | bash -
-
apt-get --quiet update --yes
...
...
@@ -24,22 +18,3 @@ build-browser:
artifacts
:
paths
:
-
platforms/browser/www/
build-android
:
stage
:
build
script
:
-
apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 curl gradle
-
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/
-
cordova build android
artifacts
:
paths
:
-
platforms/android/build/outputs/
Write
Preview
Supports
Markdown
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