@@ -16,33 +16,42 @@ matrix:
1616 - npm install -g $appiumVersion
1717 script :
1818 - ./gradlew clean build xcuiTest -x test -x signArchives
19- # - language: android
20- # install: true
21- # os: linux
22- # jdk: oraclejdk8
23- # android:
24- # components:
25- # - build-tools-26.0.2
26- # - platform-tools
27- # - tools
28- # - android-22
29- # - extra-android-m2repository
30- # - extra-google-google_play_services
31- # - extra-google-m2repository
32- # - sys-img-armeabi-v7a-android-22
33- # before_install:
34- # # node stuff
35- # - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
36- # - nvm install 6
37- # - node --version
38- # - npm --version
39- # - npm install -g appium@1.7.2
40- # - echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
41- # - emulator -avd test -no-audio -no-window &
42- # - android-wait-for-emulator
43- # - adb devices
44- # script:
45- # - ./gradlew clean test --tests "io.appium.java_client.android.*" --exclude-task signArchives
19+
20+ - language : android
21+ install : true
22+ install :
23+ - echo y | android update sdk -u -a -t tools
24+ - echo y | android update sdk -u -a -t platform-tools
25+ - echo y | android update sdk -u -a -t build-tools-25.0.2
26+ - echo y | android update sdk -u -a -t android-25
27+ - echo y | android update sdk -u -a -t extra-google-m2repository
28+ - echo y | android update sdk -u -a -t extra-android-m2repository
29+ os : linux
30+ jdk : oraclejdk8
31+ android :
32+ components :
33+ - extra-android-support
34+ - sys-img-armeabi-v7a-android-24
35+ before_install :
36+ - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
37+ - nvm install 8
38+ - node --version
39+ - npm --version
40+ - npm install -g $appiumVersion
41+ - echo y | android update sdk -a --no-ui --filter android-24
42+ - echo y | android update sdk -a --no-ui --filter sys-img-armeabi-v7a-android-24
43+ - android list targets | grep -E '^id:' | awk -F '"' '{$1=""; print $2}' # list all targets
44+ - echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a
45+ - emulator -avd test -no-skin -no-window &
46+ - android-wait-for-emulator
47+ - adb shell input keyevent 82 &
48+ - adb wait-for-device get-serialno
49+ - sleep 100
50+ - chmod +x gradlew
51+ - ./gradlew --version
52+ - echo y |adb devices
53+ script :
54+ - ./gradlew clean build uiAutomationTest -x test -x signArchives
4655
4756before_cache :
4857 - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
0 commit comments