Skip to content

Instantly share code, notes, and snippets.

@shridharkalagi
Created July 24, 2018 12:50
Show Gist options
  • Save shridharkalagi/9873e121a596976b2a53e770de3b0225 to your computer and use it in GitHub Desktop.
Save shridharkalagi/9873e121a596976b2a53e770de3b0225 to your computer and use it in GitHub Desktop.
version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: bitriseio/docker-android:v2017_09_09-06_45-b744
working_directory: ~/workspace
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- run:
name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
command: sudo chmod +x ./gradlew
- run:
command: echo y | android update sdk -u -a -t tools
- run:
command: echo y | android update sdk -u -a -t platform-tools
- run:
command: echo y | android update sdk -u -a -t build-tools-25.0.2
- run:
command: echo y | android update sdk -u -a -t android-25
- run:
name: List available targets and other sdk modules
command: sdkmanager --list --include_obsolete --verbose
- run:
command: echo y | node --version
- run:
command: echo y | npm --version
- run:
command: sudo npm i -g appium --unsafe-perm=true --allow-root
- run:
name: List available targets and other sdk modules
command: sdkmanager --list --include_obsolete --verbose
- run:
command: echo no | avdmanager create avd -n test -k "system-images;android-25;google_apis;armeabi-v7a"
- run:
command: /opt/android-sdk-linux/emulator/emulator -avd test -no-audio -no-window -no-boot-anim -accel on
background: true
- run:
command: adb shell input keyevent 82
- run:
command: adb devices
- run:
command: echo y | adb devices
- run:
name: Run Tests
command: ./gradlew clean build uiAutomationTest -x test -x signArchives
# See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment