Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-android
Commits
7102ce6a
Commit
7102ce6a
authored
Jan 09, 2017
by
Robert Hitt
Browse files
Add .gitlab-ci.yml
parent
6417e3fa
Pipeline
#744
passed with stages
in 5 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
7102ce6a
image
:
openjdk:8-jdk
variables
:
ANDROID_COMPILE_SDK
:
"
25"
ANDROID_BUILD_TOOLS
:
"
23.0.2"
ANDROID_SDK_TOOLS
:
"
24.4.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
stages
:
-
build
-
test
build
:
stage
:
build
script
:
-
./gradlew assembleDebug
artifacts
:
paths
:
-
app/build/outputs/
unitTests
:
stage
:
test
script
:
-
./gradlew test
\ No newline at end of file
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