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/