mirror of
https://github.com/budtmo/docker-android.git
synced 2025-12-08 18:25:50 +00:00
30 lines
614 B
YAML
30 lines
614 B
YAML
trigger:
|
|
branches:
|
|
include:
|
|
- master
|
|
|
|
pr:
|
|
branches:
|
|
include:
|
|
- '*'
|
|
|
|
variables:
|
|
- name: app_version
|
|
value: test
|
|
|
|
jobs:
|
|
- job: build_and_test
|
|
pool:
|
|
vmImage: ubuntu-20.04
|
|
steps:
|
|
- task: UsePythonVersion@0
|
|
inputs:
|
|
versionSpec: '3.5'
|
|
displayName: 'Use Python 3.5'
|
|
- script: pip install -r requirements.txt
|
|
displayName: 'Install pip packages'
|
|
- script: ./release.sh test 7.1.1 $(app_version)
|
|
displayName: 'Build Docker image with Android 7.1.1 and run unit tests'
|
|
- script: bash <(curl -s https://codecov.io/bash)
|
|
displayName: 'Publish test result'
|