This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (29 loc) · 1.91 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# https://docs.travis-ci.com/user/languages/minimal-and-generic/
language: minimal
services:
- docker
env:
# EMULATOR_API_LEVEL=14 x86 is not published.
# - EMULATOR_API_LEVEL=15 EMULATOR_VARIANT=google_apis EMULATOR_ARCH=x86
# - EMULATOR_API_LEVEL=16 EMULATOR_VARIANT=google_apis EMULATOR_ARCH=x86
# - EMULATOR_API_LEVEL=17 EMULATOR_VARIANT=google_apis EMULATOR_ARCH=x86
# - EMULATOR_API_LEVEL=18 EMULATOR_VARIANT=google_apis EMULATOR_ARCH=x86
# - EMULATOR_API_LEVEL=19 EMULATOR_VARIANT=google_apis EMULATOR_ARCH=x86
# EMULATOR_API_LEVEL=20 is not published at all.
# - EMULATOR_API_LEVEL=21 EMULATOR_VARIANT=google_apis EMULATOR_ARCH=x86_64
# - EMULATOR_API_LEVEL=22 EMULATOR_VARIANT=google_apis EMULATOR_ARCH=x86_64
# - EMULATOR_API_LEVEL=23 EMULATOR_VARIANT=google_apis EMULATOR_ARCH=x86_64
# - EMULATOR_API_LEVEL=24 EMULATOR_VARIANT=google_apis EMULATOR_ARCH=x86_64
# - EMULATOR_API_LEVEL=25 EMULATOR_VARIANT=google_apis EMULATOR_ARCH=armeabi-v7a
# - EMULATOR_API_LEVEL=25 EMULATOR_VARIANT=google_apis EMULATOR_ARCH=x86_64
# - EMULATOR_API_LEVEL=26 EMULATOR_VARIANT=google_apis EMULATOR_ARCH=x86_64
# - EMULATOR_API_LEVEL=27 EMULATOR_VARIANT=google_apis EMULATOR_ARCH=x86
# - EMULATOR_API_LEVEL=28 EMULATOR_VARIANT=google_apis EMULATOR_ARCH=x86_64
# - EMULATOR_API_LEVEL=28 EMULATOR_VARIANT=google_apis_playstore EMULATOR_ARCH=x86_64
- EMULATOR_API_LEVEL=29 EMULATOR_VARIANT=google_apis EMULATOR_ARCH=x86_64
- EMULATOR_API_LEVEL=29 EMULATOR_VARIANT=google_apis_playstore EMULATOR_ARCH=x86_64
before_install:
- docker info
script:
- docker build --build-arg EMULATOR_API_LEVEL --build-arg EMULATOR_VARIANT --build-arg EMULATOR_ARCH -t android-emulator-$EMULATOR_API_LEVEL android-emulator/
- docker run -it --rm --env EMULATOR_API_LEVEL --env EMULATOR_VARIANT --env EMULATOR_ARCH --volume=$(pwd)/android-emulator:/opt/workspace --entrypoint /opt/workspace/check-image.sh android-emulator-$EMULATOR_API_LEVEL