Skip to content

Commit

Permalink
Added ATD
Browse files Browse the repository at this point in the history
  • Loading branch information
budtmo committed Jul 10, 2019
1 parent b162e2e commit d789139
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README_CUSTOM_CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ If you want to add more arguments for running emulator, you can ***pass an envir
docker run --privileged -d -p 6080:6080 -p 4723:4723 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" -e EMULATOR_ARGS="-no-snapshot-load -partition-size 512" --name android-container budtmo/docker-android-x86-8.1
```

Appium Test Distribution (ATD)
------------------------------

You can enable [ATD](https://github.com/AppiumTestDistribution/AppiumTestDistribution) by passing environment variable ATD=true and bind the port to the host, e.g. -p 4567:4567

SaltStack
---------

Expand Down
6 changes: 6 additions & 0 deletions src/atd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

if [ "$ATD" = true ]; then
echo "Starting ATD..."
java -jar /root/RemoteAppiumManager.jar -DPort=4567
fi
7 changes: 7 additions & 0 deletions supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ stdout_logfile=%(ENV_LOG_PATH)s/android-screen-mirror.stdout.log
stderr_logfile=%(ENV_LOG_PATH)s/android-screen-mirror.stderr.log
priority=3

[program:atd]
command=./src/atd.sh
autorestart=false
stdout_logfile=%(ENV_LOG_PATH)s/atd.stdout.log
stderr_logfile=%(ENV_LOG_PATH)s/atd.stderr.log
priority=4

[program:docker-appium]
command=./src/appium.sh
autorestart=false
Expand Down

0 comments on commit d789139

Please sign in to comment.