Skip to content

Commit 11e9101

Browse files
committed
Updated .travis.yml with docker port and node-sdk
Added node-sdk-unit-tests target to test node-sdk unit-tests in travis. Also, added change to get the docker port and cloning fabric-baseimage repo to run the setup.sh file. These changes will not effect out build process as we have disabled Travis integration with fabric repo but others can tests their changes. Change-Id: I52bad9229187c59ae2fa5b6a93765ee73fb221c3 Signed-off-by: rameshthoomu <[email protected]>
1 parent 3b52a9f commit 11e9101

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.travis.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ services:
77
env:
88
- TEST_TARGET=unit-test
99
- TEST_TARGET=behave
10+
- TEST_TARGET=node-sdk-unit-tests
1011

1112
before_install:
1213

@@ -15,15 +16,18 @@ before_install:
1516
export TR_PULL_REQUEST="$TRAVIS_PULL_REQUEST" && export GIT_USER="$TRAVIS_REPO_SLUG"
1617
USER_NAME="$(echo $GIT_USER | cut -d '/' -f 1)" && REPO_NAME="$(echo $GIT_USER | cut -d '/' -f 2)"
1718
ip="$(ifconfig docker0 | grep "inet addr:" | awk '{print $2}' | cut -d ':' -f 2)"
18-
port="$(ps -ef | grep docker | awk '{print $11}' | cut -d ':' -f 3)"
19+
port="$(ps -ef | grep docker | awk '{print $10}' | cut -d ':' -f 3 | cut -d '' -f 1)"
1920
sudo stop docker
2021
sudo docker daemon -H tcp://0.0.0.0:$port -H unix:///var/run/docker.sock >> dockerlogfile.log 2>&1 &
2122
2223
install:
2324

2425
- echo " INSTALLING DEPENDENCIES "
2526
- |
26-
cd $HOME/gopath/src/github.com/$USER_NAME/$REPO_NAME/scripts/provision/ && chmod +x host.sh && sudo ./host.sh
27+
cd $HOME/gopath/src/github.com/$USER_NAME/$REPO_NAME
28+
git clone https://github.com/hyperledger/fabric-baseimage.git
29+
cd $HOME/gopath/src/github.com/$USER_NAME/$REPO_NAME/fabric-baseimage/scripts/devenv && chmod +x setup.sh && sudo ./setup.sh
30+
rm -rf ../../../fabric-baseimage
2731
echo " Installing Rocks DB, g++ compilers & Dependencies "
2832
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt-get -qq update && sudo apt-get -qq install g++-4.8 && sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
2933
sudo apt-get install build-essential -y

0 commit comments

Comments
 (0)