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
./gradlew build |
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
// build.gradle.kts | |
// Configure Gradle wrapper. | |
tasks.withType<Wrapper> { | |
// Specify Gradle version for the wrapper. | |
gradleVersion = "5.4.1" | |
} | |
// Use Kotlin DSL feature available in latest Gradle versions. | |
// https://docs.gradle.org/current/userguide/kotlin_dsl.html |
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
// Client.kt | |
// Default JVM name for this file will be "ClientKt". | |
// Tell JVM that I want it to be called just "Client". | |
@file:JvmName("Client") | |
// Name of the application package. | |
package client | |
import kotlin.system.exitProcess |
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
tasks.withType<Wrapper> { | |
gradleVersion = "5.4.1" | |
} |
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
mkdir -p ~/projects/teamcity-rest-client | |
cd ~/projects/teamcity-rest-client | |
# Package structure and Kotlin file. | |
mkdir -p src/main/kotlin/client | |
touch src/main/kotlin/client/Client.kt | |
# Create Gradle wrapper. | |
gradle wrapper |
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
brew install gradle |
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
xcodebuild test -enableCodeCoverage YES # ... |
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
{ | |
Name = "CLANG_COVERAGE_MAPPING"; | |
Type = Boolean; | |
DefaultValue = NO; | |
AdditionalLinkerArgs = { | |
NO = (); | |
YES = ( | |
"-fprofile-instr-generate", | |
); | |
}; |
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
// Extend the linker arguments when code coverage is enabled. We use a separate setting here to do this so that the extra linker flags will always be passed when code coverage is enabled, even if this specific target disables code coverage instrumentation via CLANG_ENABLE_COVERAGE_MAPPING. | |
{ | |
Name = "CLANG_COVERAGE_MAPPING_LINKER_ARGS"; | |
Type = Boolean; | |
DefaultValue = "$(CLANG_COVERAGE_MAPPING)"; | |
AdditionalLinkerArgs = { | |
NO = (); | |
YES = ( | |
"-fprofile-instr-generate", | |
); |
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
{ | |
Name = "CLANG_COVERAGE_MAPPING"; | |
Type = Boolean; | |
DefaultValue = NO; | |
Condition = "$(CLANG_ENABLE_CODE_COVERAGE)"; | |
CommandLineArgs = { | |
YES = ( | |
"-fprofile-instr-generate", | |
"-fcoverage-mapping", | |
); |