mathstuff/.drone.yml
Juan José Gutiérrez de Quevedo Pérez 382b0b235c
Some checks failed
continuous-integration/drone/push Build is failing
add docker build to pipeline
2025-11-25 13:11:09 +01:00

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!"