github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/test/regression/release/run_e2e_node_sdk.sh (about) 1 #!/bin/bash 2 3 # 4 # Copyright IBM Corp. All Rights Reserved. 5 # 6 # SPDX-License-Identifier: Apache-2.0 7 # 8 9 rm -rf $GOPATH/src/github.com/hyperledger/fabric-sdk-node 10 11 WD="$GOPATH/src/github.com/hyperledger/fabric-sdk-node" 12 SDK_REPO_NAME=fabric-sdk-node 13 git clone https://github.com/hyperledger/$SDK_REPO_NAME $WD 14 cd $WD 15 git checkout tags/v1.0.0 16 cd test/fixtures 17 docker rm -f "$(docker ps -aq)" || true 18 docker-compose up >> node_dockerlogfile.log 2>&1 & 19 sleep 10 20 docker ps -a 21 cd ../.. && npm install 22 npm config set prefix ~/npm && npm install -g gulp && npm install -g istanbul 23 gulp || true 24 gulp ca || true 25 rm -rf node_modules/fabric-ca-client && npm install 26 gulp test 27 28 docker rm -f "$(docker ps -aq)" || true