app/.onedev-buildspec.yml

44 lines
1.2 KiB
YAML
Raw Normal View History

2024-04-19 16:59:43 +00:00
version: 31
jobs:
- name: APK Build
jobExecutor: windows-executor
steps:
- !CheckoutStep
name: Checkout Code
cloneCredential: !DefaultCredential {}
withLfs: false
withSubmodules: true
cloneDepth: 1
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
name: Build
runInContainer: false
interpreter: !PowerShellInterpreter
commands: |
$ErrorActionPreference = "Stop"
python -m venv venv
.\venv\Scripts\activate.ps1
pip install -r requirements.txt
git config --global --add safe.directory '*'
flet build apk --include-packages flet_lottie --product WAMCO --product WAMCO --org com.wamco.app --verbose
useTTY: false
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !PublishArtifactStep
name: Artifacts
artifacts: build/apk/*
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
paramSpecs:
- !CommitParam
name: Commit Check
allowEmpty: false
triggers:
- !BranchUpdateTrigger
paramMatrix:
- name: Commit Check
valuesProvider: !IgnoreValues {}
secret: false
retryCondition: never
maxRetries: 3
retryDelay: 30
timeout: 3600