.gitlab-ci.yml 1.13 KB
Newer Older
Schoumi's avatar
Schoumi committed
1 2 3 4 5
image: openjdk:8-jdk

variables:
  ANDROID_COMPILE_SDK: "25"
  ANDROID_BUILD_TOOLS: "24.0.3"
Schoumi's avatar
Schoumi committed
6
  ANDROID_SDK_TOOLS: "25.2.3"
Schoumi's avatar
Schoumi committed
7 8

before_script:
Schoumi's avatar
Schoumi committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22
  - wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/tools_r${ANDROID_SDK_TOOLS}-linux.zip
  - mkdir -p sdk
  - cd sdk
  - unzip -o -qq ../android-sdk.zip
  - echo y | tools/android --silent update sdk --no-ui --all --filter android-${ANDROID_COMPILE_SDK}
  - echo y | tools/android --silent update sdk --no-ui --all --filter platform-tools
  - echo y | tools/android --silent update sdk --no-ui --all --filter build-tools-${ANDROID_BUILD_TOOLS}
  - echo y | tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository
  - echo y | tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services
  - echo y | tools/android --silent update sdk --no-ui --all --filter extra-google-m2repository
  - cd ..
  - export ANDROID_HOME=$PWD/sdk
  - export PATH=$PATH:$PWD/sdk/platform-tools/
  - gradle wrapper
Schoumi's avatar
Schoumi committed
23 24 25 26 27 28 29 30 31 32 33

stages:
  - build

build:
  stage: build
  script:
    - ./gradlew assembleDebug
  artifacts:
    paths:
    - app/build/outputs/