Some checks failed
continuous-integration/drone/push Build is failing
37 lines
924 B
YAML
37 lines
924 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: android-build
|
|
|
|
steps:
|
|
- name: build-docker-image
|
|
image: plugins/docker
|
|
settings:
|
|
registry: docker.gutierrezdequevedo.com
|
|
repo: docker.gutierrezdequevedo.com/ps/mathstuff
|
|
tags:
|
|
- latest
|
|
- ${DRONE_COMMIT_SHA:0:7}
|
|
|
|
- name: build-debug
|
|
image: cirrusci/android-sdk:33
|
|
commands:
|
|
- cd MathHomeworkHelper
|
|
- echo "Building Debug APK..."
|
|
- gradle clean assembleDebug
|
|
- echo "Debug APK built successfully!"
|
|
|
|
- name: build-release
|
|
image: cirrusci/android-sdk:33
|
|
commands:
|
|
- cd MathHomeworkHelper
|
|
- echo "Building Release APK..."
|
|
- gradle clean assembleRelease
|
|
- echo "Release APK built successfully!"
|
|
|
|
- name: run-tests
|
|
image: cirrusci/android-sdk:33
|
|
commands:
|
|
- cd MathHomeworkHelper
|
|
- echo "Running unit tests..."
|
|
- gradle test
|
|
- echo "Tests completed!"
|