Code Monkey home page Code Monkey logo

adb-ci-bridge's Introduction

CI Bridge Tookit

  1. What is this toolkit for? ======= In an attempt to create a real-time debug tool that could run on any CI servers, can capture failed tests trace and screenshot. I create this. Well, the most awesome term here is realtime, but sadly to say that I have not completed this part :sosad:

  2. Usage =======

  • Define location to store screenshot and trace logs on your machine via env variable: $ANDROID_SCREENSHOT Sample:
export ANDROID_SCREENSHOT="~/ubuntu/ci_screenshots"
  • Run
git clone [email protected]:toantran-ea/adb-ci-bridge.git && cd adb-ci-bridge/ && ./setup_bridge.sh

Done!

  1. What is the science behind? ======

After running setup_bridge.sh script, there are few steps taken:

  • The script will check if directory $ANDROID_SCREENSHOT is existing and create if not.
  • Python webserver will be run in background via nohup on localhost at port 9001
  • Set system environment variable named $ANDROID_SCREENSHOT to be 1. You can take advantage of this varible to know if you could contact the bridge-server.
  1. Availble endpoints from bridge server ======
  • POST /screenshot
    • request content: {"tag": <your screenshot tag>, "trace": <Your screenshot stracktrace if any>}
  • POST /unlock with empty body.
  1. Sample: =======
curl -H "Content-Type: application/json" -X POST -d '{"tag":"sample tag value","trace":"TooAwesomeException foo bar"}' http://localhost:9001/screenshot

adb-ci-bridge's People

Contributors

tinhnguyen-ea avatar toantran-ea avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

luongvo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.