Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we have setup for linux circleci? #2

Open
arpit2438735 opened this issue Jul 13, 2018 · 2 comments
Open

Can we have setup for linux circleci? #2

arpit2438735 opened this issue Jul 13, 2018 · 2 comments

Comments

@arpit2438735
Copy link

Mac OS is paid in circleci , so for open source project I want to setup Android test but I am unable to setup.Getting lot of issue in running test on android in circleci. Can you showcase some example for android platform in linux docker image?

@SBats
Copy link
Owner

SBats commented Jul 13, 2018

Hi! Unfortunately, I don't currently have examples of the setup for a Linux machine. Do you have a bit more context on where/when/why it fails?
Other than that, don't hesitate to ask the CircleCI team for help or hints. They are usually really friendly and helpful :)

EDIT: Also worth remembering if your project is open-source, you can contact CircleCI to have a free MacOS plan

@arpit2438735
Copy link
Author

Thanks @SBats I created a ticket in CircleCi.

It fails when I try to run test cases for android.Here's my configuration to run the test

test-unit-android:
      <<: *default_config
      steps:
        - attach_workspace:
            at: ~/

        - run:
            name: Setup emulator
            command: sdkmanager "system-images;android-22;default;armeabi-v7a" && echo "no" | avdmanager create avd -n test -k "system-images;android-22;default;armeabi-v7a"

        - run:
            name: Launch emulator
            command: export LD_LIBRARY_PATH=${ANDROID_HOME}/emulator/lib64:${ANDROID_HOME}/emulator/lib64/qt/lib && emulator64-arm -avd test -noaudio -no-boot-anim -no-window -accel on
            background: true

        - run:
            name: Wait emulator
            command: |
              circle-android wait-for-boot
              sleep 30
              adb shell input keyevent 82

        - run:
            name: "Build and Run unit tests For Android"
            command: |
              npx tns usage-reporting disable
              npx tns error-reporting disable
              
              npx tns test android --emulator --justlaunch

Screenshot of my error message:-
screen shot 2018-07-13 at 7 39 14 pm
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants