From 6eda815ec24e3435e49fbb1954cc7f7dd782e4bd Mon Sep 17 00:00:00 2001 From: Brian Butz Date: Mon, 11 Jul 2016 15:06:01 +0100 Subject: [PATCH] Version 0.1-pre --- DEVELOPER_README.md | 10 ++++++++-- README.md | 12 ++++++++---- build.gradle | 8 +++++--- gradle/wrapper/gradle-wrapper.properties | 2 +- src/main/resources/banner.txt | 2 +- 5 files changed, 23 insertions(+), 11 deletions(-) diff --git a/DEVELOPER_README.md b/DEVELOPER_README.md index a20a729..a9921c3 100644 --- a/DEVELOPER_README.md +++ b/DEVELOPER_README.md @@ -13,5 +13,11 @@ BEGIN END DEGENERATE; ``` -# Packaging executable -`./gradlew distShadowZip` \ No newline at end of file +# Creating a release + +When creating a release, the following steps should be followed: +- Update `build.gradle` with the version number +- Update `README.md` with the version number +- When committing those changes, tag the commit with the version number, and push the tag to repository +- Build the JAR by running `./gralew bootRepackage` +- Upload the resulting JAR to Github release associated with the version tag \ No newline at end of file diff --git a/README.md b/README.md index 5a1ff29..d3d33bc 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,29 @@ # Trilogy Trilogy is a tool for testing SQL stored procedures and functions. Test cases are represented by plain text files utilizing markdown format, which makes them easily readable and editable. +## Requirements +- JRE 1.7 or later installed +- JDBC driver for the database under test available on the classpath. + +##Latest version +0.1-pre ## Command-line options - Single test case run: ``` - $ ./trilogy [--db_url=] [--db_user=] [--db_password=] + $ java -jar trilogy.jar [--db_url=] [--db_user=] [--db_password=] ``` where `filename` is path to the `.stt` test file - Project run: ``` - $ ./trilogy --project= [--db_url=] [--db_user=] [--db_password=] [--skip_schema_load] + $ java -jar trilogy.jar --project= [--db_url=] [--db_user=] [--db_password=] [--skip_schema_load] ``` add the `skip_schema_load` flag to indicate that the `tests/fixtures/schema.sql` should not be loaded if it is present in the project. The `db_url` should point to the database under test. Make sure that the appropriate JDBC driver is available on the classpath. Also, the `db_url`, `db_user` and `db_password` can be specified as environment variables. - - ## Standalone test case file format Standalone test cases are good for small ad-hoc tests that do not require loading of the schema, procedure code or fixtures. ``` diff --git a/build.gradle b/build.gradle index dbd6bdf..f6d600c 100644 --- a/build.gradle +++ b/build.gradle @@ -22,7 +22,11 @@ apply plugin: 'application' jar { baseName = 'trilogy' - version = '0.0.1-SNAPSHOT' + version = '0.1-pre' + manifest { + attributes('Implementation-Title': baseName, 'Implementation-Version': version) + + } } sourceCompatibility = 1.7 @@ -33,7 +37,6 @@ repositories { mavenCentral() jcenter() maven { url "http://repository.jetbrains.com/all" } - flatDir { dirs 'lib' } } dependencies { @@ -41,7 +44,6 @@ dependencies { compile("org.springframework.boot:spring-boot-starter:${springBootVersion}") compile("org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}") compile("commons-cli:commons-cli:1.3.1") - compile(name: "ojdbc7") compile("org.flywaydb:flyway-core:4.0.3") testCompile('org.springframework.boot:spring-boot-starter-test') diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 3c53068..2c89673 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,4 +1,4 @@ -#Wed Jun 15 18:03:33 BST 2016 +#Mon Jul 11 14:49:04 BST 2016 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt index a6d0dee..8891f09 100644 --- a/src/main/resources/banner.txt +++ b/src/main/resources/banner.txt @@ -7,4 +7,4 @@ ${AnsiColor.BRIGHT_RED} |"-.._____${AnsiColor.GREEN}_______..-"${AnsiColor.WHITE ${AnsiColor.BRIGHT_RED} | ${AnsiColor.GREEN} |${AnsiColor.WHITE} |___| |___| |_||___||_______||_______||_______| |___| ${AnsiColor.BRIGHT_RED} |"-.._${AnsiColor.GREEN}___________..-"${AnsiColor.WHITE} ${AnsiColor.BRIGHT_RED} | ${AnsiColor.GREEN} |${AnsiColor.WHITE} [== Database Logic Testing Framework by ${AnsiColor.CYAN}Pivotal Labs${AnsiColor.WHITE} ==] -${AnsiColor.BRIGHT_RED} "${AnsiColor.GREEN}-..____________..-"${AnsiColor.WHITE} ${AnsiStyle.BOLD}Everyone just loves the fierceness of chicken cheesecake flavored with cumin.${AnsiStyle.NORMAL} +${AnsiColor.BRIGHT_RED} "${AnsiColor.GREEN}-..____________..-"${AnsiColor.WHITE} Version: ${application.version}