All Articles

You can use Docker-Android with Azure pipeline

Running Appium with Azure pipeline

Last year, I wrote blog about Android・Appium test environment using Docker-Android

I used AWS bare metal instance (i3.metal) because this x86 Android Emulator is running inside this Docker container.

Recently, I found that we can run x86 Android Emulator in Azure Pipeline

It`s unlimited to use with OSS, so some repositories of Appium project are trying use.

I tried to use this for Docker-Android, and it worked!

Sample code is following.

trigger:
- master

pool:
  vmImage: 'Ubuntu-16.04'

steps:
- task: UsePythonVersion@0
  inputs:
    versionSpec: '3.7'
    architecture: 'x64'

- script: |
    docker-compose up -d
    sleep 60
  displayName: 'Set up Docker-Android'

- script: |
    python -m pip install pipenv
    pipenv install
    pipenv run python app_simple.py
  displayName: 'Run tests'

You can use docker inside Azure Pipeline, but I couldn`t find any solution for caching.