File: docker-compose.yaml

package info (click to toggle)
python-pure-python-adb 0.3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,500 kB
  • sloc: python: 2,597; makefile: 8; sh: 1
file content (23 lines) | stat: -rw-r--r-- 692 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: '3'
services:
  python_environment:
    image: python:3
    depends_on:
     - emulator
    volumes:
     - .:/code
    working_dir: /code
    environment:
     - PYTHONPATH=/code
     - PYTHONUNBUFFERED=0
    command: sh -c "pip install -r requirements.txt;py.test test -s -v --junit-xml test_result.xml;pip install 'aiofiles>=0.4.0';py.test test_async -s -v --junit-xml test_result_async.xml"

  emulator:
    image: swind/android-emulator:android_28
    environment:
     - ANDROID_AVD_EXTRA_ARGS=--device 8 --force
     - ANDROID_EMULATOR_EXTRA_ARGS=-skin 1080x1920 -memory 2048 -no-boot-anim -gpu host -qemu
    ports:
      - 6080:6080
    devices:
      - "/dev/kvm:/dev/kvm"