Testing GitLab CI debug build
This commit is contained in:
parent
f8de5eaaf5
commit
c85c435da4
1 changed files with 28 additions and 0 deletions
28
.gitlab-ci
Normal file
28
.gitlab-ci
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
image: openjdk:8-jdk
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .gradle/
|
||||||
|
|
||||||
|
build_debug:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- apt-get update && apt-get install -y apt-transport-https curl
|
||||||
|
- echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
|
||||||
|
- curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
|
||||||
|
- apt-get update && apt-get install -y google-chrome-stable lib32stdc++6 lib32z1
|
||||||
|
- wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip
|
||||||
|
- unzip commandlinetools-linux-6200805_latest.zip -d cmdline-tools
|
||||||
|
- export ANDROID_HOME=$PWD/cmdline-tools
|
||||||
|
- export PATH=$PATH:$PWD/cmdline-tools/tools/bin
|
||||||
|
- yes | sdkmanager --licenses
|
||||||
|
- sdkmanager "platform-tools" "platforms;android-34" "build-tools;34.0.4"
|
||||||
|
- export GRADLE_USER_HOME=$(pwd)/.gradle
|
||||||
|
- chmod +x ./gradlew
|
||||||
|
- ./gradlew assembleDebug
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- app/build/outputs/
|
Loading…
Reference in a new issue