Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…omposer into develop
  • Loading branch information
Daniel Selman committed Jan 30, 2017
2 parents a393a6c + 5b5be9e commit 3492d3a
Show file tree
Hide file tree
Showing 23 changed files with 99 additions and 65 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ install: |
set -ev
set -o pipefail
npm install 2>&1 | tee
script: npm run script
script: ./.travis/script.sh
deploy:
provider: script
script: npm run deploy
script: ./.travis/deploy.sh
skip_cleanup: true
on:
all_branches: true
Expand Down
3 changes: 3 additions & 0 deletions scripts/deploy.sh → .travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ set-up-ssh --key "$encrypted_568b95f14ac3_key" \
--iv "$encrypted_568b95f14ac3_iv" \
--path-encrypted-key ".travis/github_deploy_key.enc"

# Change from HTTPS to SSH.
./.travis/fix_github_https_repo.sh

# Push the code to npm.
if [ -z "${TRAVIS_TAG}" ]; then

Expand Down
33 changes: 33 additions & 0 deletions .travis/fix_github_https_repo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password

REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'`
if [ -z "$REPO_URL" ]; then
echo "-- ERROR: Could not identify Repo url."
echo " It is possible this repo is already using SSH instead of HTTPS."
exit
fi

USER=`echo $REPO_URL | sed -Ene's#https://github.com/([^/]*)/(.*).git#\1#p'`
if [ -z "$USER" ]; then
echo "-- ERROR: Could not identify User."
exit
fi

REPO=`echo $REPO_URL | sed -Ene's#https://github.com/([^/]*)/(.*).git#\2#p'`
if [ -z "$REPO" ]; then
echo "-- ERROR: Could not identify Repo."
exit
fi

NEW_URL="[email protected]:$USER/$REPO.git"
echo "Changing repo url from "
echo " '$REPO_URL'"
echo " to "
echo " '$NEW_URL'"
echo ""

CHANGE_CMD="git remote set-url origin $NEW_URL"
`$CHANGE_CMD`

echo "Success"
File renamed without changes.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"packages": [
"packages/*"
],
"version": "0.3.10"
"version": "0.3.11"
}
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@
},
"name": "fabric-composer",
"description": "You must install [Lerna](https://lernajs.io) to build this multi-package repository.",
"version": "0.3.10",
"version": "0.3.11",
"main": "index.js",
"private": true,
"scripts": {
"postinstall": "npm run pkgcheck && npm run bootstrap",
"bootstrap": "lerna bootstrap",
"test": "lerna run test",
"script": "./scripts/script.sh",
"deploy": "./scripts/deploy.sh",
"scanlicenses": "./scripts/scan-all-licenses.sh",
"pkgcheck": "node ./scripts/pkgcheck.js",
"pkgstamp": "node ./scripts/pkgstamp.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/composer-admin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "composer-admin",
"version": "0.3.10",
"version": "0.3.11",
"description": "Fabric Composer admin, code that manages business networks",
"main": "index.js",
"typings": "index.d.ts",
Expand Down Expand Up @@ -43,8 +43,8 @@
"sinon-as-promised": "^4.0.2"
},
"dependencies": {
"composer-common": "^0.3.10",
"composer-connector-hlf": "^0.3.10"
"composer-common": "^0.3.11",
"composer-connector-hlf": "^0.3.11"
},
"license-check-config": {
"src": [
Expand Down
8 changes: 4 additions & 4 deletions packages/composer-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "composer-cli",
"version": "0.3.10",
"version": "0.3.11",
"description": "Fabric Composer command line interfaces (CLIs)",
"bin": {
"concerto": "cli.js"
Expand Down Expand Up @@ -37,9 +37,9 @@
"sinon-as-promised": "^4.0.2"
},
"dependencies": {
"composer-admin": "^0.3.10",
"composer-client": "^0.3.10",
"composer-common": "^0.3.10",
"composer-admin": "^0.3.11",
"composer-client": "^0.3.11",
"composer-common": "^0.3.11",
"homedir": "^0.6.0",
"moment": "^2.17.1",
"npm-paths": "^0.1.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/composer-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "composer-client",
"version": "0.3.10",
"version": "0.3.11",
"description": "The node.js client library for Fabric Composer, the Hyperledger Fabric development framework",
"main": "index.js",
"typings": "index.d.ts",
Expand Down Expand Up @@ -39,8 +39,8 @@
"logError": true
},
"dependencies": {
"composer-common": "^0.3.10",
"composer-connector-hlf": "^0.3.10",
"composer-common": "^0.3.11",
"composer-connector-hlf": "^0.3.11",
"uuid": "^3.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/composer-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "composer-common",
"version": "0.3.10",
"version": "0.3.11",
"description": "Fabric Composer Common, code that is common across client, admin and runtime.",
"main": "index.js",
"typings": "index.d.ts",
Expand Down
8 changes: 4 additions & 4 deletions packages/composer-connector-embedded/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "composer-connector-embedded",
"version": "0.3.10",
"version": "0.3.11",
"description": "The embedded client connector for Fabric Composer",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -49,8 +49,8 @@
"watchify": "^3.7.0"
},
"dependencies": {
"composer-common": "^0.3.10",
"composer-runtime": "^0.3.10",
"composer-runtime-embedded": "^0.3.10"
"composer-common": "^0.3.11",
"composer-runtime": "^0.3.11",
"composer-runtime-embedded": "^0.3.11"
}
}
6 changes: 3 additions & 3 deletions packages/composer-connector-hlf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "composer-connector-hlf",
"version": "0.3.10",
"version": "0.3.11",
"description": "The Hyperledger Fabric Client connector for Fabric Composer",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -37,8 +37,8 @@
"logError": true
},
"dependencies": {
"composer-common": "^0.3.10",
"composer-runtime-hlf": "^0.3.10",
"composer-common": "^0.3.11",
"composer-runtime-hlf": "^0.3.11",
"fs-extra": "^1.0.0",
"hfc": "^0.6.5",
"semver": "^5.3.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/composer-connector-proxy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "composer-connector-proxy",
"version": "0.3.10",
"version": "0.3.11",
"description": "The proxying client connector for Fabric Composer",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -50,7 +50,7 @@
"watchify": "^3.7.0"
},
"dependencies": {
"composer-common": "^0.3.10",
"composer-common": "^0.3.11",
"socket.io-client": "^1.7.2"
}
}
8 changes: 4 additions & 4 deletions packages/composer-connector-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "composer-connector-server",
"version": "0.3.10",
"version": "0.3.11",
"description": "The remote connector server for Fabric Composer",
"bin": {
"concerto-connector-server": "cli.js"
Expand Down Expand Up @@ -41,9 +41,9 @@
"logError": true
},
"dependencies": {
"composer-common": "^0.3.10",
"composer-connector-embedded": "^0.3.10",
"composer-connector-hlf": "^0.3.10",
"composer-common": "^0.3.11",
"composer-connector-embedded": "^0.3.11",
"composer-connector-hlf": "^0.3.11",
"serializerr": "^1.0.3",
"socket.io": "^1.7.2",
"uuid": "^3.0.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/composer-connector-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "composer-connector-web",
"version": "0.3.10",
"version": "0.3.11",
"description": "The web client connector for Fabric Composer",
"main": "index.js",
"typings": "index.d.ts",
Expand Down Expand Up @@ -59,8 +59,8 @@
"watchify": "^3.7.0"
},
"dependencies": {
"composer-common": "^0.3.10",
"composer-runtime": "^0.3.10",
"composer-runtime-web": "^0.3.10"
"composer-common": "^0.3.11",
"composer-runtime": "^0.3.11",
"composer-runtime-web": "^0.3.11"
}
}
12 changes: 6 additions & 6 deletions packages/composer-loopback-connector/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "composer-loopback-connector",
"version": "0.3.10",
"version": "0.3.11",
"description": "A Loopback connector for Fabric Composer",
"main": "index.js",
"scripts": {
Expand All @@ -25,11 +25,11 @@
"author": "Fabric Composer",
"license": "Apache-2",
"dependencies": {
"composer-admin": "^0.3.10",
"composer-client": "^0.3.10",
"composer-common": "^0.3.10",
"composer-connector-embedded": "^0.3.10",
"composer-connector-web": "^0.3.10",
"composer-admin": "^0.3.11",
"composer-client": "^0.3.11",
"composer-common": "^0.3.11",
"composer-connector-embedded": "^0.3.11",
"composer-connector-web": "^0.3.11",
"loopback-connector": "^2.5.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/composer-runtime-embedded/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "composer-runtime-embedded",
"version": "0.3.10",
"version": "0.3.11",
"description": "The embedded runtime container for Fabric Composer",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -50,7 +50,7 @@
"logError": true
},
"dependencies": {
"composer-runtime": "^0.3.10",
"composer-runtime": "^0.3.11",
"dexie": "^1.5.1",
"fake-indexeddb": "^1.0.8",
"uuid": "^3.0.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/composer-runtime-hlf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "composer-runtime-hlf",
"version": "0.3.10",
"version": "0.3.11",
"description": "The Hyperledger Fabric runtime container for Fabric Composer",
"main": "index.js",
"scripts": {
Expand All @@ -20,7 +20,7 @@
"license": "Apache-2.0",
"dependencies": {},
"devDependencies": {
"composer-runtime": "^0.3.10",
"composer-runtime": "^0.3.11",
"babel-polyfill": "^6.20.0",
"babel-preset-es2015": "^6.18.0",
"babelify": "^7.3.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/composer-runtime-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "composer-runtime-web",
"version": "0.3.10",
"version": "0.3.11",
"description": "The web runtime container for Fabric Composer",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -59,7 +59,7 @@
"logError": true
},
"dependencies": {
"composer-runtime": "^0.3.10",
"composer-runtime": "^0.3.11",
"dexie": "^1.5.1",
"uuid": "^3.0.1"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/composer-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "composer-runtime",
"version": "0.3.10",
"version": "0.3.11",
"description": "The runtime execution environment for Fabric Composer",
"main": "index.js",
"typings": "index.d.ts",
Expand Down Expand Up @@ -62,7 +62,7 @@
"logError": true
},
"dependencies": {
"composer-common": "^0.3.10",
"composer-common": "^0.3.11",
"debug": "^2.4.4",
"fast-json-patch": "^1.1.2",
"jsonata": "^1.0.10",
Expand Down
12 changes: 6 additions & 6 deletions packages/composer-systests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "composer-systests",
"version": "0.3.10",
"version": "0.3.11",
"private": true,
"description": "System tests and automation for Fabric Composer",
"main": "index.js",
Expand All @@ -26,11 +26,11 @@
"solutions"
],
"devDependencies": {
"composer-admin": "^0.3.10",
"composer-client": "^0.3.10",
"composer-common": "^0.3.10",
"composer-connector-embedded": "^0.3.10",
"composer-connector-web": "^0.3.10",
"composer-admin": "^0.3.11",
"composer-client": "^0.3.11",
"composer-common": "^0.3.11",
"composer-connector-embedded": "^0.3.11",
"composer-connector-web": "^0.3.11",
"brfs": "^1.4.3",
"browserfs": "^1.1.0",
"chai": "^3.5.0",
Expand Down
Loading

0 comments on commit 3492d3a

Please sign in to comment.