-
Notifications
You must be signed in to change notification settings - Fork 12
/
check
executable file
·47 lines (37 loc) · 1.51 KB
/
check
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#! /bin/bash
set -e
OPTIND=1 # Reset in case getopts has been used previously in the shell.
CLEAN=clean
while getopts "h?cs" opt; do
case "$opt" in
h|\?)
echo "Usage: $0 [-v] [-n name]"
exit 0
;;
c)
;;
s) CLEAN=
;;
esac
done
shift $((OPTIND-1))
[ "${1:-}" = "--" ] && shift
nohup java -jar adbserver-desktop.jar > /dev/null 2>&1 &
serverPID=$!
#./gradlew --continue clean detekt lint testDebugUnitTest reader:connectedDebugAndroidTest readerData:connectedDebugAndroidTest
#./gradlew clean detekt lint testDebugUnitTest reader:connectedDebugAndroidTest readerData:connectedDebugAndroidTest && ./gradlew reader:connectedDebugAndroidTest -Pcucumber
# for i in io.legere.readerdata.test voicedream.reader voicedream.reader.test; do
# adb shell pm uninstall $i
# done || true
#./gradlew clean detekt lint testDebugUnitTest reader:pixel2DebugAndroidTest readerData:pixel2DebugAndroidTest
# for i in io.legere.readerdata.test voicedream.reader voicedream.reader.test; do
# adb shell pm uninstall $i
# done || true
#./gradlew reader:pixel2DebugAndroidTest -Pcucumber
# ./gradlew clean detekt lint testDebugUnitTest reader:pixel2DebugAndroidTest readerData:pixel2DebugAndroidTest && ./gradlew reader:pixel2DebugAndroidTest -Pcucumber
#
#./gradlew clean detekt lint testDebugUnitTest pixel2DebugAndroidTest && ./gradlew pixel2DebugAndroidTest -Pcucumber
./gradlew $CLEAN detekt lint && \
./gradlew testDebugUnitTest && \
./gradlew connectedAndroidTest
kill $serverPID