Last active
March 7, 2018 10:40
-
-
Save alorma/188cae0941aa19f9455afb87b89b94bc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Check if device is connected | |
if [[ $(adb get-state) ]]; then | |
# Run Android and jUnit tests | |
./gradlew clean testDebug connectedDebugAndroidTest | |
else | |
# Run jUnit tests | |
./gradlew clean testDebug | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment