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
#!/usr/bin/env bash | |
database=${database:-some_database} | |
user=${user:-$database} | |
password=${password:-password} | |
while [ $# -gt 0 ]; do | |
if [[ $1 == *"--"* ]]; then | |
v="${1/--/}" | |
declare $v="$2" | |
# echo $1 $2 // Optional to see the parameter:value result | |
fi |
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
#!/usr/bin/env bash | |
database=${database:-some_database} | |
test_database=${database:-some_test_database} | |
user=${user:-$database} | |
password=${password:-password} | |
while [ $# -gt 0 ]; do | |
if [[ $1 == *"--"* ]]; then | |
v="${1/--/}" | |
declare $v="$2" | |
# echo $1 $2 // Optional to see the parameter:value result |
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
## Make function (create in test directory) | |
inline fun <reified T> make(): T { | |
return makeInstanceOfClass(T::class) as T | |
} | |
fun makeInstanceOfClass(clazz: KClass<*>): Any? { | |
val primitive = makePrimitiveOrNull(clazz) | |
if (primitive != null) { | |
return primitive |
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
#!/usr/bin/env bash | |
set -xe | |
pushd ${PROJECT_DIR} | |
git pull -r && \ | |
./gradlew build && \ | |
git push | |
popd |
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
#!/usr/bin/env bash | |
set -xe | |
pushd ${PROJECT_DIR} | |
CURRENT_SPACE=$(cf target | grep space | cut -d":" -f2 | tr -d '[:space:]') | |
./gradlew clean build -x test && \ | |
cf push -f cf/manifest.yml -p "./app/build/libs/app-0.0.1-SNAPSHOT.jar" --vars-file "cf/var-files/$CURRENT_SPACE.yml" | |
popd |
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
#!/usr/bin/env bash | |
ane && push |
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
#!/usr/bin/env bash | |
git commit --amend --no-edit |
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<Test> { | |
systemProperty("junit.jupiter.execution.parallel.enabled", true) | |
testLogging { | |
// set options for log level LIFECYCLE | |
events( | |
TestLogEvent.FAILED, | |
TestLogEvent.PASSED, | |
TestLogEvent.SKIPPED, |
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
git-together: https://github.com/kejadlen/git-together | |
Run `brew install pivotal/tap/git-together` | |
Add `alias git=git-together` to `~/.bash_profile` and source it | |
Make a new file in ~ called `.git-together` | |
Run `git config --global --add include.path ~/.git-together` to set the global file | |
- Will need to be run in ALL repos using that file^^^ | |
Run `git config --file .git-together --add git-together.domain pivotal.io` to set the global domain |
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 openjdk@11 | |
brew link openjdk@11 --force |
NewerOlder