This file contains 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/bash | |
# Where the changelog file will be created | |
outputFile='%system.teamcity.build.tempDir%/releasenotesfile_%teamcity.build.id%.txt' | |
# the url of teamcity server | |
teamcityUrl='%teamcity.serverUrl%' | |
# username to access Teamcity REST API | |
username='%system.teamcity.auth.userId%' | |
# password to access Teamcity REST API | |
password='%system.teamcity.auth.password%' |
This file contains 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/bash | |
function processFile { | |
# echo '***' | |
# echo "processing $1" | |
echo '—————————————————————————————————————————————' >> $outputFile | |
fragmentName=$(basename $1 .java) | |
echo "Screen name: "$fragmentName >> $outputFile | |
echo '' >> $outputFile | |
# find text between "/**" and "class" |
This file contains 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
echo 'Searching for device...' | |
devicesCount=`adb devices | grep -c emulator` | |
if [[ $devicesCount =~ 0 ]]; then | |
echo 'starting emulator' | |
/Users/tcagent/Library/Android/sdk/tools/emulator -netdelay none -netspeed full -avd Nexus_5X_API_25_x86 & | |
fi | |
#wait emulator ready |
This file contains 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
package com.sample | |
import org.mockito.Mockito | |
//wrappers: | |
inline fun <reified T : Any> mock(): T = Mockito.mock(T::class.java) | |
inline fun <reified T : Any> mock(mocking: T.() -> Unit): T = Mockito.mock(T::class.java).apply { mocking() } |