2018-02-09 12:58:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
Corda Behave extensions for CTS (#2968)
* Updated to Corda 3.0, added support for PostgreSQL, added STAGING_ROOT environment variable, incorporating Watch improvements (Maks), Steps Provider interface for auto-scanning of 3rd party steps providers, re-implemented StepBlocks, new ScenarioRunner executable tool, additional Steps definitions (Vault, issue/transfer cash, cordapps), other minor bug fixes and logging improvements.
* Updates incorporating PR review feedback.
* Reverted back to original - will re-test in ENT.
* Removed all SQL Server code (to be included in ENT only)
* Minor updates following second PR review.
* Fixed broken scenario tests.
* Final fix for PostgreSQL scenario test.
2018-04-19 09:56:16 +01:00
|
|
|
set -x
|
|
|
|
|
|
|
|
# Please ensure you run this script using source code (eg. GitHub master, branch or TAG) that reflects the version label defined below
|
|
|
|
# For example:
|
|
|
|
# corda-master => git clone https://github.com/corda/corda
|
|
|
|
# r3corda-master => git clone https://github.com/corda/enterprise
|
2018-02-16 19:23:47 +00:00
|
|
|
VERSION=r3corda-master
|
2018-04-26 16:13:34 +01:00
|
|
|
STAGING_DIR=~/staging
|
|
|
|
CORDA_DIR=${STAGING_DIR}/corda/${VERSION}
|
|
|
|
CORDAPP_DIR=${CORDA_DIR}/apps
|
|
|
|
DRIVERS_DIR=${STAGING_DIR}/drivers
|
2018-02-09 12:58:38 +00:00
|
|
|
|
|
|
|
# Set up directories
|
2018-04-26 16:13:34 +01:00
|
|
|
mkdir -p ${STAGING_DIR}
|
|
|
|
mkdir -p ${CORDA_DIR}
|
|
|
|
mkdir -p ${CORDAPP_DIR}
|
Corda Behave extensions for CTS (#2968)
* Updated to Corda 3.0, added support for PostgreSQL, added STAGING_ROOT environment variable, incorporating Watch improvements (Maks), Steps Provider interface for auto-scanning of 3rd party steps providers, re-implemented StepBlocks, new ScenarioRunner executable tool, additional Steps definitions (Vault, issue/transfer cash, cordapps), other minor bug fixes and logging improvements.
* Updates incorporating PR review feedback.
* Reverted back to original - will re-test in ENT.
* Removed all SQL Server code (to be included in ENT only)
* Minor updates following second PR review.
* Fixed broken scenario tests.
* Final fix for PostgreSQL scenario test.
2018-04-19 09:56:16 +01:00
|
|
|
mkdir -p ${DRIVERS_DIR}
|
2018-02-09 12:58:38 +00:00
|
|
|
|
2018-02-16 19:23:47 +00:00
|
|
|
# Copy Corda capsule into staging
|
Corda Behave extensions for CTS (#2968)
* Updated to Corda 3.0, added support for PostgreSQL, added STAGING_ROOT environment variable, incorporating Watch improvements (Maks), Steps Provider interface for auto-scanning of 3rd party steps providers, re-implemented StepBlocks, new ScenarioRunner executable tool, additional Steps definitions (Vault, issue/transfer cash, cordapps), other minor bug fixes and logging improvements.
* Updates incorporating PR review feedback.
* Reverted back to original - will re-test in ENT.
* Removed all SQL Server code (to be included in ENT only)
* Minor updates following second PR review.
* Fixed broken scenario tests.
* Final fix for PostgreSQL scenario test.
2018-04-19 09:56:16 +01:00
|
|
|
cd ../..
|
2018-02-16 19:23:47 +00:00
|
|
|
./gradlew :node:capsule:buildCordaJar :finance:jar
|
2018-04-26 16:13:34 +01:00
|
|
|
cp -v $(ls node/capsule/build/libs/corda-*.jar | tail -n1) ${CORDA_DIR}/corda.jar
|
Corda Behave extensions for CTS (#2968)
* Updated to Corda 3.0, added support for PostgreSQL, added STAGING_ROOT environment variable, incorporating Watch improvements (Maks), Steps Provider interface for auto-scanning of 3rd party steps providers, re-implemented StepBlocks, new ScenarioRunner executable tool, additional Steps definitions (Vault, issue/transfer cash, cordapps), other minor bug fixes and logging improvements.
* Updates incorporating PR review feedback.
* Reverted back to original - will re-test in ENT.
* Removed all SQL Server code (to be included in ENT only)
* Minor updates following second PR review.
* Fixed broken scenario tests.
* Final fix for PostgreSQL scenario test.
2018-04-19 09:56:16 +01:00
|
|
|
|
|
|
|
# Copy finance library
|
2018-04-26 16:13:34 +01:00
|
|
|
cp -v $(ls finance/build/libs/corda-finance-*.jar | tail -n1) ${CORDAPP_DIR}
|
2018-02-09 12:58:38 +00:00
|
|
|
|
2018-02-16 19:23:47 +00:00
|
|
|
# Copy sample Cordapps
|
|
|
|
./gradlew samples:simm-valuation-demo:jar
|
|
|
|
cp -v $(ls samples/simm-valuation-demo/build/libs/simm-valuation-demo-*.jar | tail -n1) ${CORDAPP_DIR}
|
|
|
|
|
2018-02-09 12:58:38 +00:00
|
|
|
# Download database drivers
|
2018-04-26 16:13:34 +01:00
|
|
|
curl "https://search.maven.org/remotecontent?filepath=com/h2database/h2/1.4.196/h2-1.4.196.jar" > ${DRIVERS_DIR}/h2-1.4.196.jar
|
|
|
|
curl -L "http://central.maven.org/maven2/org/postgresql/postgresql/42.1.4/postgresql-42.1.4.jar" > ${DRIVERS_DIR}/postgresql-42.1.4.jar
|
2018-02-16 19:23:47 +00:00
|
|
|
curl -L "https://github.com/Microsoft/mssql-jdbc/releases/download/v6.2.2/mssql-jdbc-6.2.2.jre8.jar" > ${DRIVERS_DIR}/mssql-jdbc-6.2.2.jre8.jar
|
2018-02-09 12:58:38 +00:00
|
|
|
|
Corda Behave extensions for CTS (#2968)
* Updated to Corda 3.0, added support for PostgreSQL, added STAGING_ROOT environment variable, incorporating Watch improvements (Maks), Steps Provider interface for auto-scanning of 3rd party steps providers, re-implemented StepBlocks, new ScenarioRunner executable tool, additional Steps definitions (Vault, issue/transfer cash, cordapps), other minor bug fixes and logging improvements.
* Updates incorporating PR review feedback.
* Reverted back to original - will re-test in ENT.
* Removed all SQL Server code (to be included in ENT only)
* Minor updates following second PR review.
* Fixed broken scenario tests.
* Final fix for PostgreSQL scenario test.
2018-04-19 09:56:16 +01:00
|
|
|
# Build Network Bootstrapper
|
2018-02-09 12:58:38 +00:00
|
|
|
./gradlew buildBootstrapperJar
|
2018-04-26 16:13:34 +01:00
|
|
|
cp -v $(ls tools/bootstrapper/build/libs/*.jar | tail -n1) ${CORDA_DIR}/network-bootstrapper.jar
|
2018-02-16 19:23:47 +00:00
|
|
|
|
|
|
|
# build and distribute Doorman/NMS
|
|
|
|
./gradlew network-management:capsule:buildDoormanJAR
|
|
|
|
cp -v $(ls network-management/capsule/build/libs/doorman-*.jar | tail -n1) ${CORDA_DIR}/doorman.jar
|
|
|
|
|
|
|
|
# build and distribute DB Migration tool
|
|
|
|
./gradlew tools:dbmigration:shadowJar
|
|
|
|
cp -v $(ls tools/dbmigration/build/libs/*migration-*.jar | tail -n1) ${CORDA_DIR}/dbmigration.jar
|
|
|
|
|